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 */}}
{{- 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" }}