mirror of
https://github.com/pmoreno-rodriguez/grav-theme-future2021.git
synced 2025-06-30 07:08:53 +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>
|
<p>{{ page.header.subtitle }}</p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
{% if page.header.primaryImage %}
|
{% if page.header.primaryImage %}
|
||||||
{{ page.media[page.header.primaryImage].cropZoom(1038,437).loading('lazy').html(page.title, page.title, 'image featured')|raw }}
|
{{ page.media[page.header.primaryImage].cropZoom(1038,437).loading('lazy').html(page.title, page.title, 'image featured')|raw }}
|
||||||
{% else %}
|
{% else %}
|
||||||
{{ page.media.images|first.cropZoom(1038,437).loading('lazy').html(page.title, page.title, 'image featured')|raw }}
|
{{ page.media.images|first.cropZoom(1038,437).loading('lazy').html(page.title, page.title, 'image featured')|raw }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{{ page.content|raw }}
|
{{ page.content|raw }}
|
||||||
|
|
||||||
</article>
|
</article>
|
||||||
|
|
||||||
<section id="footer" class="align-center">
|
<section id="footer" class="align-center">
|
||||||
{% include 'partials/footer.html.twig' %}
|
{% include 'partials/footer.html.twig' %}
|
||||||
</section>
|
</section>
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
{% extends 'partials/base.html.twig' %}
|
{% extends 'partials/base.html.twig' %}
|
||||||
|
|
||||||
{% set base_url = page.parent.url %}
|
{% set base_url = page.parent.url %}
|
||||||
{% set feed_url = base_url %}
|
{% set feed_url = base_url %}
|
||||||
{% set show_breadcrumbs = header_var('show_breadcrumbs', [page, blog]) %}
|
{% set show_breadcrumbs = header_var('show_breadcrumbs', [page, blog]) %}
|
||||||
|
@ -16,7 +17,6 @@
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
|
|
||||||
{% if show_breadcrumbs and config.plugins.breadcrumbs.enabled %}
|
{% if show_breadcrumbs and config.plugins.breadcrumbs.enabled %}
|
||||||
{% include 'partials/breadcrumbs.html.twig' %}
|
{% include 'partials/breadcrumbs.html.twig' %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
|
@ -22,6 +22,7 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{{ page.content|raw}}
|
{{ page.content|raw}}
|
||||||
|
|
||||||
<!-- Portfolio -->
|
<!-- Portfolio -->
|
||||||
{% block portfolio %}
|
{% block portfolio %}
|
||||||
<section>
|
<section>
|
||||||
|
|
|
@ -8,7 +8,6 @@
|
||||||
<article class="post simplesearch">
|
<article class="post simplesearch">
|
||||||
<header>
|
<header>
|
||||||
<div class="title">
|
<div class="title">
|
||||||
|
|
||||||
{% block results %}
|
{% block results %}
|
||||||
<div class="content-padding simplesearch">
|
<div class="content-padding simplesearch">
|
||||||
<h1 class="search-header">{{ "PLUGIN_SIMPLESEARCH.SEARCH_RESULTS"|t }}</h1>
|
<h1 class="search-header">{{ "PLUGIN_SIMPLESEARCH.SEARCH_RESULTS"|t }}</h1>
|
||||||
|
@ -27,16 +26,14 @@
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</header>
|
</header>
|
||||||
{% for page in search_results %}
|
{% for page in search_results %}
|
||||||
{% include 'partials/simplesearch_item.html.twig' with {'page':page} %}
|
{% include 'partials/simplesearch_item.html.twig' with {'page':page} %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</article>
|
</article>
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block sidebar %}
|
{% block sidebar %}
|
||||||
{% if theme_config.sidebar == true %}
|
{% if theme_config.sidebar == true %}
|
||||||
{% include 'partials/sidebar_left.html.twig' %}
|
{% include 'partials/sidebar_left.html.twig' %}
|
||||||
|
|
Loading…
Add table
Reference in a new issue