From 7e9bb24b22ea78cc2599d761229b014af0a5dc38 Mon Sep 17 00:00:00 2001 From: Nick Dumas Date: Mon, 5 Jun 2023 12:17:45 -0400 Subject: [PATCH] first, the partial --- layouts/partials/series_header.html | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 layouts/partials/series_header.html 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 -}} +