mirror of
https://github.com/pmoreno-rodriguez/grav-theme-future2021.git
synced 2025-07-23 02:18:57 +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">
|
||||
<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">
|
||||
{% block header_navigation %}
|
||||
{% include 'partials/navigation.html.twig' %}
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
{% set base_url = base_url|default(page.url) %}
|
||||
|
||||
{% if pagination|length > 1 %}
|
||||
|
||||
<ul class="actions pagination">
|
||||
{% if pagination.hasPrev %}
|
||||
{% set url = (base_url ~ pagination.params ~ pagination.prevUrl)|replace({'//':'/'}) %}
|
||||
|
@ -12,7 +11,6 @@
|
|||
{% endif %}
|
||||
|
||||
{% for paginate in pagination %}
|
||||
|
||||
{% if paginate.isCurrent %}
|
||||
<li><span class="disabled button large">{{ paginate.number }}</span></li>
|
||||
{% elseif paginate.isInDelta %}
|
||||
|
@ -21,8 +19,8 @@
|
|||
{% elseif paginate.isDeltaBorder %}
|
||||
<li class="gap"><span>…</span></li>
|
||||
{% endif %}
|
||||
|
||||
{% endfor %}
|
||||
|
||||
{% if pagination.hasNext %}
|
||||
{% 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>
|
||||
|
@ -30,5 +28,4 @@
|
|||
<li><span class="disabled button large">{{'FUTURE.BLOG.PAGINATION.NEXT'|t}}</span></li>
|
||||
{% endif %}
|
||||
</ul>
|
||||
|
||||
{% endif %}
|
||||
|
|
Loading…
Add table
Reference in a new issue