2020-02-16 22:01:48 +03:00
|
|
|
<!--
|
|
|
|
Navigation buttons at the bottom of the post.
|
|
|
|
|
|
|
|
v2.1
|
|
|
|
https://github.com/cotes2020/jekyll-theme-chirpy
|
|
|
|
© 2020 Cotes Chung
|
|
|
|
MIT License
|
|
|
|
-->
|
|
|
|
|
|
|
|
<div class="post-navigation d-flex justify-content-between">
|
|
|
|
{% if page.previous.url %}
|
2021-01-23 22:02:19 +03:00
|
|
|
<a href="{{ site.baseurl }}{{ page.previous.url }}" class="btn btn-outline-primary"
|
|
|
|
prompt="{{ site.data.label.post.button.previous | default: 'previous' }}">
|
2020-02-16 22:01:48 +03:00
|
|
|
<p>{{ page.previous.title }}</p>
|
2020-02-21 21:45:07 +03:00
|
|
|
</a>
|
2020-02-16 22:01:48 +03:00
|
|
|
{% else %}
|
2020-02-21 21:45:07 +03:00
|
|
|
<span class="btn btn-outline-primary disabled">
|
2020-02-16 22:01:48 +03:00
|
|
|
<p>-</p>
|
2020-02-21 21:45:07 +03:00
|
|
|
</span>
|
2020-02-16 22:01:48 +03:00
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{% if page.next.url %}
|
2021-01-23 22:02:19 +03:00
|
|
|
<a href="{{ site.baseurl }}{{page.next.url}}" class="btn btn-outline-primary"
|
|
|
|
prompt="{{ site.data.label.post.button.next | default: 'next' }}">
|
2020-02-16 22:01:48 +03:00
|
|
|
<p>{{ page.next.title }}</p>
|
2020-02-21 21:45:07 +03:00
|
|
|
</a>
|
2020-02-16 22:01:48 +03:00
|
|
|
{% else %}
|
2020-02-21 21:45:07 +03:00
|
|
|
<span class="btn btn-outline-primary disabled">
|
2020-02-16 22:01:48 +03:00
|
|
|
<p>-</p>
|
2020-02-21 21:45:07 +03:00
|
|
|
</span>
|
2020-02-16 22:01:48 +03:00
|
|
|
{% endif %}
|
2020-02-21 21:45:07 +03:00
|
|
|
|
2021-01-23 22:02:19 +03:00
|
|
|
</div>
|