mirror of
https://github.com/pmoreno-rodriguez/grav-theme-future2021.git
synced 2025-06-29 14:48:55 +00:00
Autoformatted some twigs
This commit is contained in:
parent
7909c59e83
commit
a5a775bb32
8 changed files with 157 additions and 157 deletions
|
@ -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>
|
||||
|
|
|
@ -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 %}
|
||||
|
|
|
@ -22,6 +22,7 @@
|
|||
{% endif %}
|
||||
|
||||
{{ page.content|raw}}
|
||||
|
||||
<!-- Portfolio -->
|
||||
{% block portfolio %}
|
||||
<section>
|
||||
|
|
|
@ -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' %}
|
||||
|
|
Loading…
Add table
Reference in a new issue