2018-01-16 22:08:47 -05:00
|
|
|
---
|
|
|
|
layout: layouts/base.njk
|
|
|
|
---
|
2023-02-02 18:35:18 -05:00
|
|
|
{%- css %}
|
|
|
|
/* Only include the syntax highlighter CSS on blog posts */
|
|
|
|
{% include "node_modules/prismjs/themes/prism-okaidia.css" %}
|
|
|
|
{% include "public/css/prism-diff.css" %}
|
|
|
|
{%- endcss %}
|
2018-01-16 22:08:47 -05:00
|
|
|
<h1>{{ title }}</h1>
|
|
|
|
|
2022-08-15 15:53:45 -04:00
|
|
|
<ul class="post-metadata">
|
2023-01-23 12:37:44 -05:00
|
|
|
<li><time datetime="{{ page.date | htmlDateString }}">{{ page.date | readableDate }}</time></li>
|
|
|
|
{%- for tag in tags | filterTagList %}
|
|
|
|
{%- set tagUrl %}/tags/{{ tag | slugify }}/{% endset %}
|
|
|
|
<li><a href="{{ tagUrl }}" class="post-tag">{{ tag }}</a>{%- if not loop.last %}, {% endif %}</li>
|
|
|
|
{%- endfor %}
|
2022-08-15 15:53:45 -04:00
|
|
|
</ul>
|
2021-03-17 17:29:07 -04:00
|
|
|
|
2018-08-01 21:39:57 -04:00
|
|
|
{{ content | safe }}
|
2018-01-26 00:36:31 -05:00
|
|
|
|
2021-07-28 09:57:46 -04:00
|
|
|
{%- if collections.posts %}
|
2022-07-27 18:00:44 -04:00
|
|
|
{%- set previousPost = collections.posts | getPreviousCollectionItem %}
|
|
|
|
{%- set nextPost = collections.posts | getNextCollectionItem %}
|
2021-03-17 17:29:07 -04:00
|
|
|
{%- if nextPost or previousPost %}
|
2023-01-23 12:37:44 -05:00
|
|
|
<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 %}
|
2020-07-27 16:19:01 -04:00
|
|
|
</ul>
|
2021-03-17 17:29:07 -04:00
|
|
|
{%- endif %}
|
2021-07-28 09:57:46 -04:00
|
|
|
{%- endif %}
|