added post navigation
- added links to previous/next post
This commit is contained in:
1 parent
7fb7497d54
commit
a8afe3ee8a
4 files changed
+28
-2
No files matched your search
@@ -12,6 +12,7 @@
|
||||
<section class="{{ page.section-type }}">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="PageNavigation">
|
||||
<br />
|
||||
<h1 class="">{{page.title}}</h1>
|
||||
<div class="post-info">
|
||||
@@ -28,6 +29,15 @@
|
||||
</div>
|
||||
{{ page.content | markdownify }}
|
||||
</div>
|
||||
<p class="post-nav">
|
||||
{% if page.previous.url %}
|
||||
<a class="post-prev" href="{{site.baseurl}}{{page.previous.url}}">« {{page.previous.title}}</a>
|
||||
{% endif %}
|
||||
{% if page.next.url %}
|
||||
<a class="post-next" href="{{site.baseurl}}{{page.next.url}}">{{page.next.title}} »</a>
|
||||
{% endif %}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
|
||||
Reference in new issue
Block a user