From 031f86d0a98798db050d05d04f0e170f41ef841d Mon Sep 17 00:00:00 2001 From: John Bowdre Date: Sat, 1 Jun 2024 20:44:09 -0500 Subject: [PATCH 1/5] add tags index page --- content/tags/_index.md | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 content/tags/_index.md diff --git a/content/tags/_index.md b/content/tags/_index.md new file mode 100644 index 0000000..56d2e29 --- /dev/null +++ b/content/tags/_index.md @@ -0,0 +1,3 @@ +--- +title: Tags +--- From d19ac0c35dab1983d854f6c04812ae78506d841d Mon Sep 17 00:00:00 2001 From: John Bowdre Date: Sat, 1 Jun 2024 21:09:28 -0500 Subject: [PATCH 2/5] archive: just display last updated date on categories and slashes --- layouts/partials/archive.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/layouts/partials/archive.html b/layouts/partials/archive.html index 4907815..c863448 100644 --- a/layouts/partials/archive.html +++ b/layouts/partials/archive.html @@ -37,7 +37,7 @@

{{ .Title | markdownify }}

@@ -57,7 +57,7 @@

{{ .Title | markdownify }}

From 1c636f161d62e4fc7d8a998a5b97c2d73a598a00 Mon Sep 17 00:00:00 2001 From: John Bowdre Date: Sat, 1 Jun 2024 21:10:16 -0500 Subject: [PATCH 3/5] archive: adjust handling of taxo rss label --- layouts/partials/archive.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/archive.html b/layouts/partials/archive.html index c863448..814aa0d 100644 --- a/layouts/partials/archive.html +++ b/layouts/partials/archive.html @@ -10,7 +10,7 @@

{{ .Title | markdownify }}

My collection of slash pages.
{{ else }} -

{{ .Title | markdownify }}{{ if eq .Kind "term" }}  

+

{{ .Title | markdownify }}{{ if eq .Kind "term" }}  

{{ with .Description }}{{ . }}
{{ else }}
{{ end }} {{ end }} {{ end }}{{ end }} From f1eb781a580db13f77a1560b402e073a746da215 Mon Sep 17 00:00:00 2001 From: John Bowdre Date: Sat, 1 Jun 2024 21:10:42 -0500 Subject: [PATCH 4/5] 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" }} From 6a1e85fe78f04c88c9b29ee193ed5b08675ecb7d Mon Sep 17 00:00:00 2001 From: John Bowdre Date: Sat, 1 Jun 2024 21:11:32 -0500 Subject: [PATCH 5/5] config: remove capitalizeListTitles option --- config/_default/hugo.toml | 1 - 1 file changed, 1 deletion(-) diff --git a/config/_default/hugo.toml b/config/_default/hugo.toml index 50829a1..603ce6f 100644 --- a/config/_default/hugo.toml +++ b/config/_default/hugo.toml @@ -7,7 +7,6 @@ languageCode = "en" DefaultContentLanguage = "en" enableInlineShortcodes = true enableRobotsTXT = true -capitalizeListTitles = false # define gemini media type [mediaTypes]