Autoformatted some twigs

This commit is contained in:
pikim 2023-01-20 15:41:47 +01:00
parent 7909c59e83
commit a5a775bb32
8 changed files with 157 additions and 157 deletions

View file

@ -13,16 +13,18 @@
<p>{{ page.header.subtitle }}</p>
{% endif %}
</div>
</header>
{% if page.header.primaryImage %}
{{ page.media[page.header.primaryImage].cropZoom(1038,437).loading('lazy').html(page.title, page.title, 'image featured')|raw }}
{% else %}
{{ page.media.images|first.cropZoom(1038,437).loading('lazy').html(page.title, page.title, 'image featured')|raw }}
{% endif %}
{{ page.content|raw }}
</article>
<section id="footer" class="align-center">
{% include 'partials/footer.html.twig' %}
</section>

View file

@ -1,4 +1,5 @@
{% extends 'partials/base.html.twig' %}
{% set base_url = page.parent.url %}
{% set feed_url = base_url %}
{% set show_breadcrumbs = header_var('show_breadcrumbs', [page, blog]) %}
@ -16,7 +17,6 @@
{% endblock %}
{% block content %}
{% if show_breadcrumbs and config.plugins.breadcrumbs.enabled %}
{% include 'partials/breadcrumbs.html.twig' %}
{% endif %}

View file

@ -22,6 +22,7 @@
{% endif %}
{{ page.content|raw}}
<!-- Portfolio -->
{% block portfolio %}
<section>

View file

@ -8,7 +8,6 @@
<article class="post simplesearch">
<header>
<div class="title">
{% block results %}
<div class="content-padding simplesearch">
<h1 class="search-header">{{ "PLUGIN_SIMPLESEARCH.SEARCH_RESULTS"|t }}</h1>
@ -27,16 +26,14 @@
</p>
</div>
{% endblock %}
</div>
</header>
{% for page in search_results %}
{% include 'partials/simplesearch_item.html.twig' with {'page':page} %}
{% endfor %}
</article>
{% endblock %}
{% block sidebar %}
{% if theme_config.sidebar == true %}
{% include 'partials/sidebar_left.html.twig' %}