From 0af3e6ea004c42b396e884ea266faf86c915804c Mon Sep 17 00:00:00 2001 From: John Bowdre Date: Fri, 22 Dec 2023 17:12:18 -0600 Subject: [PATCH] clean up all tags page --- content/posts/_index.md | 1 - layouts/partials/archive.html | 8 +++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/content/posts/_index.md b/content/posts/_index.md index db5627a..02eb363 100644 --- a/content/posts/_index.md +++ b/content/posts/_index.md @@ -1,5 +1,4 @@ +++ aliases = ["all_posts", "articles"] title = "Index of Posts" -tags = ["index"] +++ diff --git a/layouts/partials/archive.html b/layouts/partials/archive.html index c5e3690..3cbf057 100644 --- a/layouts/partials/archive.html +++ b/layouts/partials/archive.html @@ -11,6 +11,7 @@ {{ .Content }} +{{- if ne .Title "Tags"}} {{- range (.Paginate $pages).Pages }} {{- $postDate := .Date.Format "2006-01-02" }} {{- $updateDate := .Lastmod.Format "2006-01-02" }} @@ -28,4 +29,9 @@
{{ end }} -{{- template "_internal/pagination.html" . }} \ No newline at end of file +{{- template "_internal/pagination.html" . }} +{{- else }} +{{- range .Pages.ByTitle }} + [{{ .Title | markdownify }}] +{{- end }} +{{- end }} \ No newline at end of file