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
|
@ -1,18 +1,18 @@
|
|||
{% extends 'partials/base.html.twig' %}
|
||||
|
||||
{% set collection = page.collection() %}
|
||||
{% set base_url = page.url %}
|
||||
{% set feed_url = base_url %}
|
||||
{% if page.header.show_breadcrumbs is defined %}
|
||||
{% set collection = page.collection() %}
|
||||
{% set base_url = page.url %}
|
||||
{% set feed_url = base_url %}
|
||||
{% if page.header.show_breadcrumbs is defined %}
|
||||
{% set show_breadcrumbs = page.header.show_breadcrumbs %}
|
||||
{% else %}
|
||||
{% else %}
|
||||
{% set show_breadcrumbs = true %}
|
||||
{% endif %}
|
||||
{% if page.header.show_pagination is defined %}
|
||||
{% endif %}
|
||||
{% if page.header.show_pagination is defined %}
|
||||
{% set show_pagination = page.header.show_pagination %}
|
||||
{% else %}
|
||||
{% else %}
|
||||
{% set show_pagination = true %}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
{% if uri.param('category') %}
|
||||
{% set page_title = theme_config.listing_title.taxonomy.category | default('Posts in Category: ') ~ uri.param('category') %}
|
||||
|
@ -24,19 +24,19 @@
|
|||
{% set page_title = theme_config.listing_title.blog | default('') %}
|
||||
{% endif %}
|
||||
|
||||
{% if base_url == '/' %}
|
||||
{% if base_url == '/' %}
|
||||
{% set base_url = '' %}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
{% if base_url == base_url_relative %}
|
||||
{% if base_url == base_url_relative %}
|
||||
{% set feed_url = base_url~'/'~page.slug %}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
{% block menu %}
|
||||
{% block menu %}
|
||||
{% include 'partials/sidebar_right.html.twig' %}
|
||||
{% endblock %}
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
{% block content %}
|
||||
{% if show_breadcrumbs and config.plugins.breadcrumbs.enabled %}
|
||||
{% include 'partials/breadcrumbs.html.twig' %}
|
||||
{% endif %}
|
||||
|
@ -52,10 +52,10 @@
|
|||
{% if show_pagination and config.plugins.pagination.enabled and collection.params.pagination %}
|
||||
{% include 'partials/pagination.html.twig' with {base_url: page.url, pagination: collection.params.pagination} %}
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
{% endblock %}
|
||||
|
||||
{% block sidebar %}
|
||||
{% block sidebar %}
|
||||
{% if theme_config.sidebar == true %}
|
||||
{% include 'partials/sidebar_left.html.twig' %}
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
{% endblock %}
|
||||
|
|
|
@ -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}}
|
||||
|
||||
{{ page.content|raw }}
|
||||
|
||||
</article>
|
||||
|
||||
<section id="footer" class="align-center">
|
||||
{% include 'partials/footer.html.twig' %}
|
||||
</section>
|
||||
|
|
|
@ -5,12 +5,12 @@
|
|||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<article class="post">
|
||||
<article class="post">
|
||||
<header>
|
||||
<div class="title">
|
||||
<h2><span class="icon fa-exclamation-triangle"></span> Error {{ page.header.http_response_code }}</h2>
|
||||
<p>{{ page.content|raw }}</p>
|
||||
</div>
|
||||
</header>
|
||||
</article>
|
||||
</article>
|
||||
{% endblock %}
|
||||
|
|
|
@ -1,22 +1,22 @@
|
|||
{% 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]) %}
|
||||
|
||||
{% if base_url == '/' %}
|
||||
{% set base_url = page.parent.url %}
|
||||
{% set feed_url = base_url %}
|
||||
{% set show_breadcrumbs = header_var('show_breadcrumbs', [page, blog]) %}
|
||||
|
||||
{% if base_url == '/' %}
|
||||
{% set base_url = '' %}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
{% if base_url == base_url_relative %}
|
||||
{% if base_url == base_url_relative %}
|
||||
{% set feed_url = base_url~'/'~page.parent.slug %}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
{% block menu %}
|
||||
{% block menu %}
|
||||
{% include 'partials/sidebar_right.html.twig' %}
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
{% if show_breadcrumbs and config.plugins.breadcrumbs.enabled %}
|
||||
{% include 'partials/breadcrumbs.html.twig' %}
|
||||
{% endif %}
|
||||
|
@ -26,4 +26,4 @@
|
|||
<section id="footer" class="align-center">
|
||||
{% include 'partials/footer.html.twig' %}
|
||||
</section>
|
||||
{% endblock %}
|
||||
{% endblock %}
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
{% block header %}{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<article class="post">
|
||||
<article class="post">
|
||||
<header>
|
||||
<div class="title">
|
||||
<h1 class="logo"><a href="{{ home_url }}">{{ site.title }}</a></h1>
|
||||
|
@ -11,8 +11,8 @@
|
|||
<p>{{ page.content|raw }}</p>
|
||||
</div>
|
||||
</header>
|
||||
</article>
|
||||
<section id="footer" class="align-center">
|
||||
</article>
|
||||
<section id="footer" class="align-center">
|
||||
{% include 'partials/footer.html.twig' %}
|
||||
</section>
|
||||
</section>
|
||||
{% endblock %}
|
||||
|
|
|
@ -22,6 +22,7 @@
|
|||
{% endif %}
|
||||
|
||||
{{ page.content|raw}}
|
||||
|
||||
<!-- Portfolio -->
|
||||
{% block portfolio %}
|
||||
<section>
|
||||
|
@ -29,7 +30,7 @@
|
|||
{% for item in page.header.images %}
|
||||
<div class="{{columns}} portfolio_item">
|
||||
<a href="{{page.media[item.image].url}}" class="glightbox" data-width="100vw" data-zoomable="true" data-glightbox='title: {{item.title}}; description: {{item.description|raw}}'>
|
||||
<span class="image fit"><img src="{{page.media[item.thumb].url}}" alt="image" /></span>
|
||||
<span class="image fit"><img src="{{page.media[item.thumb].url}}" alt="image"/></span>
|
||||
</a>
|
||||
</div>
|
||||
{% endfor %}
|
||||
|
|
|
@ -5,17 +5,16 @@
|
|||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<article class="post simplesearch">
|
||||
<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>
|
||||
<div class="center">
|
||||
{% include 'partials/simplesearch_searchbox_results.html.twig' %}
|
||||
</div>
|
||||
<p class="published" >
|
||||
<p class="published">
|
||||
{% if query %}
|
||||
{% set count = search_results ? search_results.count : 0 %}
|
||||
{% if count is same as( 1 ) %}
|
||||
|
@ -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>
|
||||
|
||||
</article>
|
||||
{% endblock %}
|
||||
|
||||
{% block sidebar %}
|
||||
{% if theme_config.sidebar == true %}
|
||||
{% include 'partials/sidebar_left.html.twig' %}
|
||||
|
|
Loading…
Add table
Reference in a new issue