Files
11ty_neocities/src/_includes/layout/blog.njk

9 lines
461 B
Plaintext
Raw Normal View History

2023-02-21 00:02:35 +10:30
---
layout: layout/base.njk
---
2023-03-04 01:39:16 +10:30
{# {% set previousPost = collections.post | getPreviousCollectionItem(page) %}
{% set nextPost = collections.post | getNextCollectionItem(page) %}
2023-02-21 00:02:35 +10:30
2023-03-04 01:39:16 +10:30
{% if previousPost %}Previous Blog Post: <a href="{{ previousPost.url }}">{{ previousPost.data.title }}</a>{% endif %}
{% if nextPost %}Next Blog Post: <a href="{{ nextPost.url }}">{{ nextPost.data.title }}</a>{% endif %} #}
<article class="blog-post">{{ content | safe}}</article>