mirror of
https://github.com/pawroman/zola-theme-terminimal.git
synced 2025-01-08 19:51:06 +01:00
Fix postview navigation
This commit is contained in:
parent
0ced77898f
commit
cf114ec7e2
|
@ -33,31 +33,33 @@
|
||||||
|
|
||||||
|
|
||||||
{% macro earlier_later(page) %}
|
{% macro earlier_later(page) %}
|
||||||
{%- if config.extra.enable_post_view_navigation and page.lower or page.higher %}
|
{%- if config.extra.enable_post_view_navigation %}
|
||||||
<div class="pagination">
|
{%- if page.lower or page.higher %}
|
||||||
<div class="pagination__title">
|
<div class="pagination">
|
||||||
<span class="pagination__title-h">{{ config.extra.post_view_navigation_prompt }}</span>
|
<div class="pagination__title">
|
||||||
<hr />
|
<span class="pagination__title-h">{{ config.extra.post_view_navigation_prompt }}</span>
|
||||||
|
<hr />
|
||||||
|
</div>
|
||||||
|
<div class="pagination__buttons">
|
||||||
|
{%- if page.higher %}
|
||||||
|
<span class="button previous">
|
||||||
|
<a href="{{ page.higher.permalink | safe }}">
|
||||||
|
<span class="button__icon">←</span>
|
||||||
|
<span class="button__text">{{ page.higher.title }}</span>
|
||||||
|
</a>
|
||||||
|
</span>
|
||||||
|
{% endif %}
|
||||||
|
{% if page.lower %}
|
||||||
|
<span class="button next">
|
||||||
|
<a href="{{ page.lower.permalink | safe }}">
|
||||||
|
<span class="button__text">{{ page.lower.title }}</span>
|
||||||
|
<span class="button__icon">→</span>
|
||||||
|
</a>
|
||||||
|
</span>
|
||||||
|
{% endif -%}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="pagination__buttons">
|
{% endif -%}
|
||||||
{%- if page.higher %}
|
|
||||||
<span class="button previous">
|
|
||||||
<a href="{{ page.higher.permalink | safe }}">
|
|
||||||
<span class="button__icon">←</span>
|
|
||||||
<span class="button__text">{{ page.higher.title }}</span>
|
|
||||||
</a>
|
|
||||||
</span>
|
|
||||||
{% endif %}
|
|
||||||
{% if page.lower %}
|
|
||||||
<span class="button next">
|
|
||||||
<a href="{{ page.lower.permalink | safe }}">
|
|
||||||
<span class="button__text">{{ page.lower.title }}</span>
|
|
||||||
<span class="button__icon">→</span>
|
|
||||||
</a>
|
|
||||||
</span>
|
|
||||||
{% endif -%}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{% endif -%}
|
{% endif -%}
|
||||||
{% endmacro earlier_later %}
|
{% endmacro earlier_later %}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue