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>
|
|
|
|
|
|
|
|
<ul class="post-metadata">
|
|
|
|
<li><time datetime="{{ page.date | htmlDateString }}">{{ page.date | readableDate }}</time></li>
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
{{ content | safe }}
|
|
|
|
|
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-13 16:12:09 +00:00
|
|
|
{# <div id="cusdis_thread"
|
|
|
|
data-host="https://cusdis.com"
|
|
|
|
data-app-id="1dd6bcd8-97df-4cc1-a8ab-6324f9c732d0"
|
|
|
|
data-page-id="{{ page.url | getPostId }}"
|
|
|
|
data-page-url="{{ metadata.url | noTrailingSlash }}{{ page.url }}"
|
|
|
|
data-page-title="{{ title | slugify }}"
|
|
|
|
data-theme="auto"
|
|
|
|
></div>
|
2024-09-13 21:36:39 +00:00
|
|
|
<script async defer src="https://cusdis.com/js/cusdis.es.js"></script> #}
|