mirror of
https://github.com/pmoreno-rodriguez/grav-theme-future2021.git
synced 2025-07-23 18:38:55 +00:00
Autoformatted some twigs
This commit is contained in:
parent
3318a38408
commit
ecc1d5c964
6 changed files with 83 additions and 84 deletions
|
@ -1,5 +1,7 @@
|
||||||
<header id="header">
|
<header id="header">
|
||||||
<h1 class="logo"><a href="{{ home_url }}">{{ site.title }}</a></h1>
|
<h1 class="logo">
|
||||||
|
<a href="{{ home_url }}">{{ site.title }}</a>
|
||||||
|
</h1>
|
||||||
<nav class="dropdown">
|
<nav class="dropdown">
|
||||||
{% block header_navigation %}
|
{% block header_navigation %}
|
||||||
{% include 'partials/navigation.html.twig' %}
|
{% include 'partials/navigation.html.twig' %}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<li class="langswitcher">
|
<li class="langswitcher">
|
||||||
{% set display_format = display_format ?? config.get('plugins.langswitcher.language_display', 'long') %}
|
{% set display_format = display_format ?? config.get('plugins.langswitcher.language_display', 'long') %}
|
||||||
{% for language in langswitcher.languages %}
|
{% for language in langswitcher.languages %}
|
||||||
|
|
||||||
{% set show_language = true %}
|
{% set show_language = true %}
|
||||||
{% if language == langswitcher.current %}
|
{% if language == langswitcher.current %}
|
||||||
|
@ -27,5 +27,5 @@
|
||||||
<a href="{{ lang_url ~ uri.params }}" class="external{{ active_class }}">{% include 'partials/langswitcher-' ~ display_format ~ '.html.twig' %}</a>
|
<a href="{{ lang_url ~ uri.params }}" class="external{{ active_class }}">{% include 'partials/langswitcher-' ~ display_format ~ '.html.twig' %}</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</li>
|
</li>
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
{% set logo = theme_var(mobile ? 'custom_logo_mobile' : 'custom_logo') %}
|
{% set logo = theme_var(mobile ? 'custom_logo_mobile' : 'custom_logo') %}
|
||||||
<a href="{{ home_url }}" class="logo">
|
<a href="{{ home_url }}" class="logo">
|
||||||
{% if logo %}
|
{% if logo %}
|
||||||
{% set logo_file = (logo|first).name %}
|
{% set logo_file = (logo|first).name %}
|
||||||
<img src="{{ url('theme://images/logo/' ~ logo_file) }}" alt="{{ site.title }}" />
|
<img src="{{ url('theme://images/logo/' ~ logo_file) }}" alt="{{ site.title }}"/>
|
||||||
{% else %}
|
{% else %}
|
||||||
{% include('@images/grav-logo.svg') %}
|
{% include('@images/grav-logo.svg') %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</a>
|
</a>
|
|
@ -1,3 +1,3 @@
|
||||||
{% for meta in page.metadata %}
|
{% for meta in page.metadata %}
|
||||||
<meta {% if meta.name %}name="{{ meta.name }}" {% endif %}{% if meta.http_equiv %}http-equiv="{{ meta.http_equiv }}" {% endif %}{% if meta.charset %}charset="{{ meta.charset }}" {% endif %}{% if meta.property %}property="{{ meta.property }}" {% endif %}{% if meta.content %}content="{{ meta.content }}" {% endif %}/>
|
<meta {% if meta.name %} name="{{ meta.name }}" {% endif %} {% if meta.http_equiv %} http-equiv="{{ meta.http_equiv }}" {% endif %} {% if meta.charset %} charset="{{ meta.charset }}" {% endif %} {% if meta.property %} property="{{ meta.property }}" {% endif %} {% if meta.content %} content="{{ meta.content }}" {% endif %}/>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
|
@ -2,8 +2,7 @@
|
||||||
{% set base_url = base_url|default(page.url) %}
|
{% set base_url = base_url|default(page.url) %}
|
||||||
|
|
||||||
{% if pagination|length > 1 %}
|
{% if pagination|length > 1 %}
|
||||||
|
<ul class="actions pagination">
|
||||||
<ul class="actions pagination">
|
|
||||||
{% if pagination.hasPrev %}
|
{% if pagination.hasPrev %}
|
||||||
{% set url = (base_url ~ pagination.params ~ pagination.prevUrl)|replace({'//':'/'}) %}
|
{% set url = (base_url ~ pagination.params ~ pagination.prevUrl)|replace({'//':'/'}) %}
|
||||||
<li><a class="button large previous" rel="prev" href="{{ url }}">{{'FUTURE.BLOG.PAGINATION.PREVIOUS'|t}}</a></li>
|
<li><a class="button large previous" rel="prev" href="{{ url }}">{{'FUTURE.BLOG.PAGINATION.PREVIOUS'|t}}</a></li>
|
||||||
|
@ -12,7 +11,6 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% for paginate in pagination %}
|
{% for paginate in pagination %}
|
||||||
|
|
||||||
{% if paginate.isCurrent %}
|
{% if paginate.isCurrent %}
|
||||||
<li><span class="disabled button large">{{ paginate.number }}</span></li>
|
<li><span class="disabled button large">{{ paginate.number }}</span></li>
|
||||||
{% elseif paginate.isInDelta %}
|
{% elseif paginate.isInDelta %}
|
||||||
|
@ -21,14 +19,13 @@
|
||||||
{% elseif paginate.isDeltaBorder %}
|
{% elseif paginate.isDeltaBorder %}
|
||||||
<li class="gap"><span>…</span></li>
|
<li class="gap"><span>…</span></li>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
{% if pagination.hasNext %}
|
{% if pagination.hasNext %}
|
||||||
{% set url = (base_url ~ pagination.params ~ pagination.nextUrl)|replace({'//':'/'}) %}
|
{% set url = (base_url ~ pagination.params ~ pagination.nextUrl)|replace({'//':'/'}) %}
|
||||||
<li><a class="button large next" rel="next" href="{{ url }}">{{'FUTURE.BLOG.PAGINATION.NEXT'|t}}</a></li>
|
<li><a class="button large next" rel="next" href="{{ url }}">{{'FUTURE.BLOG.PAGINATION.NEXT'|t}}</a></li>
|
||||||
{% else %}
|
{% else %}
|
||||||
<li><span class="disabled button large">{{'FUTURE.BLOG.PAGINATION.NEXT'|t}}</span></li>
|
<li><span class="disabled button large">{{'FUTURE.BLOG.PAGINATION.NEXT'|t}}</span></li>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
Loading…
Add table
Reference in a new issue