nycki.net/content/_includes/layouts/post.njk

36 lines
1.2 KiB
Text
Raw Normal View History

2024-09-13 02:47:49 +00:00
---
layout: layouts/base.njk
---
{# Only include the syntax highlighter CSS on blog posts #}
{%- css %}{% include "node_modules/prismjs/themes/prism-okaidia.css" %}{% endcss %}
<h1>{{ title }}</h1>
2024-11-22 00:10:01 +00:00
<article>
{{ content | safe }}
</article>
2024-09-13 02:47:49 +00:00
<ul class="post-metadata">
<li><time datetime="{{ page.date | htmlDateString }}">{{ page.date | readableDate }}</time></li>
</ul>
2024-09-13 03:30:26 +00:00
{%- for tag in tags | filterTagList %}
2024-09-13 21:36:39 +00:00
{%- set tagUrl %}/blog/tags/{{ tag | slugify }}/{% endset %}
2024-09-13 03:30:26 +00:00
<a href="{{ tagUrl }}" class="post-tag">{{ tag }}</a>{%- if not loop.last %}, {% endif %}
{%- endfor %}
2024-09-13 02:47:49 +00:00
{%- if collections.posts %}
{%- set previousPost = collections.posts | getPreviousCollectionItem %}
{%- set nextPost = collections.posts | getNextCollectionItem %}
{%- if nextPost or previousPost %}
<ul class="links-nextprev">
{%- if previousPost %}<li>Previous: <a href="{{ previousPost.url }}">{{ previousPost.data.title }}</a></li>{% endif %}
{%- if nextPost %}<li>Next: <a href="{{ nextPost.url }}">{{ nextPost.data.title }}</a></li>{% endif %}
</ul>
{%- endif %}
{%- endif %}
2024-09-13 15:10:14 +00:00
2024-09-18 00:49:30 +00:00
<p>Anonymous comments will be held for review.</p>
2024-09-18 00:32:19 +00:00
<script defer src="https://xnil.io/comentario/comentario.js"></script>
2024-09-18 00:29:26 +00:00
<comentario-comments theme="dark"></comentario-comments>