diff --git a/config/_default/menu.yaml b/config/_default/menu.yaml index 6d291ecd..debb6578 100644 --- a/config/_default/menu.yaml +++ b/config/_default/menu.yaml @@ -15,6 +15,10 @@ main: name: "Photos" url: "/photos" weight: 25 + - pageRef: "/series" + name: "Series" + url: "/series" + weight: 27 - pageRef: "/explore" name: "Explore" url: "/explore" diff --git a/content/micro/2025/20/newsletter!/index.md b/content/micro/2025/20/newsletter!/index.md index a3093b60..4a09b6fe 100644 --- a/content/micro/2025/20/newsletter!/index.md +++ b/content/micro/2025/20/newsletter!/index.md @@ -5,7 +5,7 @@ description: E ora ho una newsletter tags: - post categories: -- news +- rant reply: repost: like: diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 3acd3466..caeab260 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -41,15 +41,14 @@ {{end}} - - {{ partial "toc.html" .}}
{{- partial "bridgy.html" . -}} - {{ .Content }}
+ + {{ partial "series.html" . }} {{- partial "syndication.html" . -}} {{- partial "comments.html" . -}} diff --git a/layouts/micro/single.html b/layouts/micro/single.html index 5dff352a..e57126fd 100644 --- a/layouts/micro/single.html +++ b/layouts/micro/single.html @@ -29,6 +29,8 @@ {{- partial "bridgy.html" . -}} {{ .Content }} + + {{ partial "series.html" . }} {{- partial "syndication.html" . -}} {{- partial "comments.html" . -}} diff --git a/layouts/partials/comments.html b/layouts/partials/comments.html index e149d229..5bbfe97c 100644 --- a/layouts/partials/comments.html +++ b/layouts/partials/comments.html @@ -17,12 +17,6 @@ You mentioned this post on your site? Send a - {{ partial "series.html" . }} - -{{- end -}} - {{ with $related }}

See Also

diff --git a/layouts/partials/postCard.html b/layouts/partials/postCard.html index 4a480981..5caa5ee4 100644 --- a/layouts/partials/postCard.html +++ b/layouts/partials/postCard.html @@ -10,11 +10,10 @@ {{ else if eq .Type "weeknote" }} {{ else }} - + {{ end}} {{ .Title }}
-
{{/* format date string to create an ISO 8601 string */}} {{ $ISO_date := "2006-01-02T15:04:05Z0700" }} {{ $configDateFormat := .Site.Params.dateFormat | default "2 Jan 2006" }} @@ -23,8 +22,10 @@ {{ end }} + {{if not (eq .Type "series") }} + {{ end}} diff --git a/layouts/partials/series.html b/layouts/partials/series.html index 8ecdb14a..efbac5bd 100644 --- a/layouts/partials/series.html +++ b/layouts/partials/series.html @@ -1,23 +1,28 @@ -{{- with (.GetTerms "series") -}} - {{- range . -}} - {{- $series := .Pages.ByDate -}} -
- - - This post is part of the {{ .Title }} series - - -
    - {{- range $series -}} -
  1. - {{- if eq .File.UniqueID $.File.UniqueID -}} - {{ .Title }} - {{- else -}} - {{ .Title }} - {{- end -}} -
  2. - {{- end -}} -
-
- {{- end -}} + +{{- if .Params.series -}} +
+ {{- with (.GetTerms "series") -}} + {{- range . -}} + {{- $series := .Pages.ByDate -}} +
+ + + This post is part of the {{ .Title }} series + + +
    + {{- range $series -}} +
  1. + {{- if eq .File.UniqueID $.File.UniqueID -}} + {{ .Title }} + {{- else -}} + {{ .Title }} + {{- end -}} +
  2. + {{- end -}} +
+
+ {{- end -}} + {{- end -}} +
{{- end -}} diff --git a/layouts/photos/single.html b/layouts/photos/single.html index fe43cac2..b7ec7500 100644 --- a/layouts/photos/single.html +++ b/layouts/photos/single.html @@ -147,6 +147,8 @@ + + {{ partial "series.html" . }} {{- partial "syndication.html" . -}} {{- partial "comments.html" . -}} diff --git a/layouts/series/list.html b/layouts/series/list.html new file mode 100644 index 00000000..026f8ed9 --- /dev/null +++ b/layouts/series/list.html @@ -0,0 +1,15 @@ +{{- define "main" -}} +
+
+

{{ .Title }}

+
+
+ {{ range .Pages.GroupByDate "2006" }} + {{/* create a list of posts for each month, with month as heading */}} + {{ range $index, $element := .Pages.ByDate }} + {{ partial "postCard" . }} + {{ end }} {{/* end range .Pages.ByDate */}} + {{ end }} {{/* end range .Pages.GroupByDate "2006" */}} +
+
+{{- end -}}