Generate single page versions of series
This commit is contained in:
parent
111c859aee
commit
00b535a618
5 changed files with 53 additions and 5 deletions
25
content/series_pages.njk
Normal file
25
content/series_pages.njk
Normal 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>
|
Loading…
Add table
Add a link
Reference in a new issue