commit 7e9bb24b22ea78cc2599d761229b014af0a5dc38 Author: Nick Dumas Date: Mon Jun 5 12:17:45 2023 -0400 first, the partial diff --git a/layouts/partials/series_header.html b/layouts/partials/series_header.html new file mode 100644 index 0000000..415a7f3 --- /dev/null +++ b/layouts/partials/series_header.html @@ -0,0 +1,20 @@ +{{- with index (.GetTerms "series") 0 -}} +
+

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

+ + {{- end -}} + {{- $series := where .Site.RegularPages.ByDate ".Params.series" "intersect" .Params.series -}} + {{- with $series -}} +
    + {{- range . -}} +
  1. + {{- if eq .File.UniqueID $.File.UniqueID -}} + {{ .Title }} + {{- else -}} + {{ .Title }} + {{- end -}} +
  2. + {{- end -}} +
+ {{- end -}} +