post-to-post pagination and a few spacing tweaks
This commit is contained in:
1 parent
3249c8305f
commit
94716d8e63
4 files changed
+38
-7
No files matched your search
@@ -34,4 +34,13 @@ layout: base.njk
|
||||
|
||||
{{ content | safe }}
|
||||
</article>
|
||||
|
||||
{% set olderPost = collections.posts | getPreviousCollectionItem %}
|
||||
{% set newerPost = collections.posts | getNextCollectionItem %}
|
||||
{% set olderHref = olderPost.url %}
|
||||
{% set newerHref = newerPost.url %}
|
||||
{% set olderTitle = olderPost.data.title %}
|
||||
{% set newerTitle = newerPost.data.title %}
|
||||
{% set inPost = true %}
|
||||
{% include "pagination.njk" %}
|
||||
</heading-anchors>
|
||||
Reference in new issue
Block a user