Add series

This commit is contained in:
Will Faught
2023-03-15 18:08:23 -07:00
parent 5fb76c35f6
commit a66f33962c
9 changed files with 74 additions and 7 deletions

View File

@@ -11,6 +11,7 @@
{{ $modified := and .PublishDate .Lastmod (lt .PublishDate .Lastmod) }}
{{ $pinned := .Params.paige.pin }}
{{ $readingtime := .ReadingTime }}
{{ $series := .Params.series }}
{{ $summary := .Summary | htmlUnescape | plainify }}
{{ $tags := .Params.tags | default slice | uniq }}
{{ $title := .Title | markdownify }}
@@ -74,6 +75,20 @@
</p>
{{ end }}
{{ with $series }}
<p class="mb-0 paige-series text-center text-secondary">
{{ range $i, $name := . -}}
{{- if gt $i 0 }}, {{ end -}}
{{- with site.GetPage (print "series/" $name) -}}
<a class="link-secondary text-decoration-none" href="{{ .RelPermalink }}">{{ .Title | default $name }}</a>
{{- else -}}
{{- $name -}}
{{- end -}}
{{- end }}
</p>
{{ end }}
{{ with $authors }}
<p class="mb-0 paige-authors text-center text-secondary">{{ . }}</p>
{{ end }}