30 lines
1.1 KiB
Text
30 lines
1.1 KiB
Text
---
|
|
layout: layouts/base.njk
|
|
---
|
|
<article>
|
|
<h1>{{ title }}</h1>
|
|
<address>by <a href="{{ author.url or metadata.author.url }}">
|
|
{{ author.name or metadata.author.name }}
|
|
</a></address>
|
|
<time datetime="{{ page.date | htmlDateString }}">published {{ page.date | readableDate }}</time>
|
|
{% if series %}
|
|
<aside>This article is part of a series: <a href="#seriesNav">{{ series.name }}</a></aside>
|
|
{% endif %}
|
|
{{ content | safe }}
|
|
</article>
|
|
{% if collections.posts %}
|
|
{% set previousPost = collections.posts | getPreviousCollectionItem %}
|
|
{% set nextPost = collections.posts | getNextCollectionItem %}
|
|
{% if nextPost or previousPost %}
|
|
<nav name="Article Navigation">
|
|
<ol>
|
|
{% if previousPost %}<li><a href="{{ previousPost.url}}">{{ previousPost.data.title }}</a></li>{% endif %}
|
|
{% if nextPost %}<li><a href="{{ nextPost.url}}">{{ nextPost.data.title }}</a></li>{% endif %}
|
|
</ol>
|
|
</nav>
|
|
{% endif %}
|
|
{% endif %}
|
|
{% if series %}
|
|
{% set seriesName = series.name %}
|
|
<nav name="Series Name Directory" id="seriesNav">{% include "series_list.njk" %}</nav>
|
|
{% endif %}
|