crisp-theme.git

git clone https://git.crispbyte.dev/crisp-theme.git

crisp-theme.git / content
cheddar  ·  2025-04-18

series_pages.njk

 1---
 2layout: layouts/series_base.njk
 3pagination:
 4  data: collections.series
 5  size: 1
 6  alias: seriesName
 7permalink: "series/{{ seriesName | slugify }}/"
 8---
 9
10<article>
11<h1>{{ seriesName }}</h1>
12{%- for post in collections.posts | seriesPosts(seriesName) %}
13<article>
14  <h2 class="post-title">{{ post.data.title }}</h2>
15  <div class="about">
16    <address>by <a href="{{ post.author.url or metadata.author.url }}">
17      {{ post.author.name or metadata.author.name }}
18    </a></address>
19    <time datetime="{{ post.date | htmlDateString }}">published {{ post.date | readableDate }}</time>
20  </div>
21  {{ post.content | safe }}
22</article>
23<hr>
24{%- endfor %}
25</article>