commit d201e7a80c715c0d8d30e18b549259053cbbe840
parent 03aa789a94d63eedaced1206dd55ca2f3c50cefb
Author: Lou Woell <lou.woell@posteo.de>
Date: Mon, 13 Oct 2025 20:58:59 +0200
Add series information to posts
Diffstat:
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/layouts/single.html b/layouts/single.html
@@ -4,7 +4,7 @@
{{ if .Params.tags }}
<span class="post-tags">
{{ range .Params.tags }}
- #<a href="{{ (urlize (printf "tags/%s/" .)) | absLangURL }}">{{ . }}</a>
+ #<a href="{{ (urlize (printf "tags/%s/" .)) | absLangURL }}">{{ . }}</a>
{{ end }}
</span>
{{ end }}
@@ -28,6 +28,13 @@
{{- if and (.Param "readingTime") (eq (.Param "readingTime") true) -}}
<span class="post-reading-time">{{ .ReadingTime }} {{ $.Site.Params.minuteReadingTime | default "min read" }} ({{ .WordCount }} {{ $.Site.Params.words | default "words" }})</span>
{{- end -}}
+ {{- if .Params.series -}}
+ <span class ="series">
+ {{- with .Params.series -}}
+ Part of the <a href="{{ (urlize (printf "series/%s/" . )) | absLangURL }}"> {{ . }}</a> series.
+ {{- end -}}
+ </span>
+ {{- end -}}
</div>
{{ partial "cover.html" . }}