Generate single page versions of series

This commit is contained in:
cheddar 2025-04-18 14:23:45 -04:00
parent 111c859aee
commit 00b535a618
No known key found for this signature in database
5 changed files with 53 additions and 5 deletions

25
content/series_pages.njk Normal file
View file

@ -0,0 +1,25 @@
---
layout: layouts/series_base.njk
pagination:
data: collections.series
size: 1
alias: seriesName
permalink: "series/{{ seriesName | slugify }}/"
---
<article>
<h1>{{ seriesName }}</h1>
{%- for post in collections.posts | seriesPosts(seriesName) %}
<article>
<h2 class="post-title">{{ post.data.title }}</h2>
<div class="about">
<address>by <a href="{{ post.author.url or metadata.author.url }}">
{{ post.author.name or metadata.author.name }}
</a></address>
<time datetime="{{ post.date | htmlDateString }}">published {{ post.date | readableDate }}</time>
</div>
{{ post.content | safe }}
</article>
<hr>
{%- endfor %}
</article>