From f90ee9696e2a5864a2d558ae4584bd6c3419d825 Mon Sep 17 00:00:00 2001 From: John Bowdre Date: Sat, 1 Jun 2024 21:16:25 -0500 Subject: [PATCH] update draft --- content/posts/the-slash-page-scoop/index.md | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/content/posts/the-slash-page-scoop/index.md b/content/posts/the-slash-page-scoop/index.md index 3af1011..db8ad69 100644 --- a/content/posts/the-slash-page-scoop/index.md +++ b/content/posts/the-slash-page-scoop/index.md @@ -140,18 +140,20 @@ While I'm at it, I'd like for the posts themselves to be listed in alphabetical ```jinja-html # torchlight! {"lineNumbers":true} {{- if eq .Kind "taxonomy" }} - {{- if eq .Title "Tags" }} + {{- if eq .Title "Tags" }} + {{/* list of all tags */}}
{{- range $key, $value := .Site.Taxonomies }} {{- $slicedTags := ($value.ByCount) }} {{- range $slicedTags }} {{- if eq $key "tags"}} -
{{ .Name }}{{ .Count }}
+
{{ .Name }}{{ .Count }}
{{- end }} {{- end }} {{- end }}
{{- else }} + {{/* list of all categories */}} {{- range .Pages.ByDate.Reverse }} {{- $postDate := .Date.Format "2006-01-02" }} {{- $updateDate := .Lastmod.Format "2006-01-02" }} @@ -159,7 +161,7 @@ While I'm at it, I'd like for the posts themselves to be listed in alphabetical

{{ .Title | markdownify }}

@@ -170,7 +172,8 @@ While I'm at it, I'd like for the posts themselves to be listed in alphabetical {{ end }} {{- end }} {{- else }} - {{- range (.Paginate $pages).Pages }} + {{/* regular posts archive */}} + {{- range (.Paginate $pages).Pages }} {{- $postDate := .Date.Format "2006-01-02" }} {{- $updateDate := .Lastmod.Format "2006-01-02" }}
@@ -181,12 +184,12 @@ While I'm at it, I'd like for the posts themselves to be listed in alphabetical

- {{ .Summary }} + {{if .Description }}{{ .Description }}{{ else }}{{ .Summary }}{{ end }}

- {{- end }} - {{- template "_internal/pagination.html" . }} + {{- end }} + {{- template "_internal/pagination.html" . }} {{- end }} ```