From 527f3b7892bf8a2b26b0bcac579dc728f883fbfd Mon Sep 17 00:00:00 2001 From: a Date: Thu, 21 Mar 2024 18:04:33 -0500 Subject: [PATCH] add support for series to blog --- layouts/blog/single.html | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/layouts/blog/single.html b/layouts/blog/single.html index 7165a3a..75c0e03 100644 --- a/layouts/blog/single.html +++ b/layouts/blog/single.html @@ -23,6 +23,14 @@ {{ end }} + {{- if .Params.series -}} + {{- with index (.GetTerms "series") 0 -}} +
+

This post is part of the {{ .LinkTitle }} series.

+
+ {{- end -}} + {{- end -}} + {{ if ne .TableOfContents "" }}

Table of contents:

{{ .TableOfContents }} @@ -31,6 +39,27 @@
{{ .Content }}
+