From f1eb781a580db13f77a1560b402e073a746da215 Mon Sep 17 00:00:00 2001 From: John Bowdre Date: Sat, 1 Jun 2024 21:10:42 -0500 Subject: [PATCH] archive: add comments to more easily identify logic branches --- layouts/partials/archive.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/layouts/partials/archive.html b/layouts/partials/archive.html index 814aa0d..6e669a2 100644 --- a/layouts/partials/archive.html +++ b/layouts/partials/archive.html @@ -19,6 +19,7 @@ {{- if eq .Kind "taxonomy" }} {{- if eq .Title "Tags" }} + {{/* list of all tags */}}
{{- range $key, $value := .Site.Taxonomies }} {{- $slicedTags := ($value.ByCount) }} @@ -30,6 +31,7 @@ {{- end }}
{{- else }} + {{/* list of all categories */}} {{- range .Pages.ByDate.Reverse }} {{- $postDate := .Date.Format "2006-01-02" }} {{- $updateDate := .Lastmod.Format "2006-01-02" }} @@ -49,6 +51,7 @@ {{- end }} {{- else }} {{- if eq .Title "/slashes" }} + {{/* slash page archive */}} {{- $sortedSlashes := sort $pages "Title" }} {{- range $sortedSlashes }} {{- $postDate := .Date.Format "2006-01-02" }} @@ -67,6 +70,7 @@ {{- end }} {{- else }} + {{/* regular posts archive */}} {{- range (.Paginate $pages).Pages }} {{- $postDate := .Date.Format "2006-01-02" }} {{- $updateDate := .Lastmod.Format "2006-01-02" }}