web/_includes/post-nav.html

31 lines
982 B
HTML
Raw Normal View History

<!--
Navigation buttons at the bottom of the post.
-->
<div class="post-navigation d-flex justify-content-between">
{% if page.previous.url %}
<a href="{{ site.baseurl }}{{ page.previous.url }}" class="btn btn-outline-primary"
2021-07-20 20:01:09 +03:00
prompt="{{ site.data.locales[site.lang].post.button.previous | default: 'previous' }}">
<p>{{ page.previous.title }}</p>
</a>
{% else %}
<span class="btn btn-outline-primary disabled"
2021-07-20 20:01:09 +03:00
prompt="{{ site.data.locales[site.lang].post.button.previous | default: 'previous' }}">
<p>-</p>
</span>
{% endif %}
{% if page.next.url %}
<a href="{{ site.baseurl }}{{page.next.url}}" class="btn btn-outline-primary"
2021-07-20 20:01:09 +03:00
prompt="{{ site.data.locales[site.lang].post.button.next | default: 'next' }}">
<p>{{ page.next.title }}</p>
</a>
{% else %}
<span class="btn btn-outline-primary disabled"
2021-07-20 20:01:09 +03:00
prompt="{{ site.data.locales[site.lang].post.button.next | default: 'next' }}">
<p>-</p>
</span>
{% endif %}
</div>