Fix postview navigation

This commit is contained in:
Lucas Kent 2024-05-04 12:20:58 +10:00
parent 0ced77898f
commit cf114ec7e2

View file

@ -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>&nbsp;
<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>&nbsp;
<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>&nbsp;
<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>&nbsp;
<span class="button__icon"></span>
</a>
</span>
{% endif -%}
</div>
</div>
{% endif -%} {% endif -%}
{% endmacro earlier_later %} {% endmacro earlier_later %}