crimsontome.com/_includes/layouts/post.njk

29 lines
907 B
Plaintext
Raw Normal View History

2021-10-15 22:30:12 +01:00
---
layout: layouts/base.njk
templateClass: tmpl-post
---
<h1>{{ title }}</h1>
2022-09-04 21:41:19 +01:00
<div class="container">
<div class="tandt">
2021-10-15 22:30:12 +01:00
<time datetime="{{ page.date | htmlDateString }}">{{ page.date | readableDate }}</time>
{%- for tag in tags | filterTagList -%}
{%- set tagUrl %}/tags/{{ tag | slug }}/{% endset -%}
<a href="{{ tagUrl | url }}" class="post-tag">{{ tag }}</a>
{%- endfor %}
2022-09-04 21:41:19 +01:00
</div>
</div>
2021-10-15 22:30:12 +01:00
{{ content | safe }}
{%- if collections.posts %}
{%- set nextPost = collections.posts | getNextCollectionItem(page) %}
{%- set previousPost = collections.posts | getPreviousCollectionItem(page) %}
{%- if nextPost or previousPost %}
<hr>
<ul>
{%- if nextPost %}<li>Next: <a href="{{ nextPost.url | url }}">{{ nextPost.data.title }}</a></li>{% endif %}
{%- if previousPost %}<li>Previous: <a href="{{ previousPost.url | url }}">{{ previousPost.data.title }}</a></li>{% endif %}
</ul>
{%- endif %}
{%- endif %}