clean up all tags page

This commit is contained in:
John Bowdre 2023-12-22 17:12:18 -06:00
parent 17fd0dfb9b
commit 0af3e6ea00
2 changed files with 7 additions and 2 deletions

View file

@ -1,5 +1,4 @@
+++
aliases = ["all_posts", "articles"]
title = "Index of Posts"
tags = ["index"]
+++

View file

@ -11,6 +11,7 @@
{{ .Content }}
</header>
{{- if ne .Title "Tags"}}
{{- range (.Paginate $pages).Pages }}
{{- $postDate := .Date.Format "2006-01-02" }}
{{- $updateDate := .Lastmod.Format "2006-01-02" }}
@ -28,4 +29,9 @@
<br>
</article>
{{ end }}
{{- template "_internal/pagination.html" . }}
{{- template "_internal/pagination.html" . }}
{{- else }}
{{- range .Pages.ByTitle }}
[<a href="{{ .Permalink }}">{{ .Title | markdownify }}</a>]
{{- end }}
{{- end }}