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 }}

- ["{{- $postDate }}"{{- if ne $postDate $updateDate }}, "{{ $updateDate }}"{{ end }}] + ["{{ with $updateDate }}{{ . }}{{ else }}{{ .$postDate }}{{ end }}"]

@@ -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 }} ```