Update tags and categories to both use the same layouts

This commit is contained in:
2022-05-09 19:21:39 -05:00
parent 466c91a980
commit de84bc5ddf
11 changed files with 65 additions and 147 deletions

View File

@ -1,10 +1,19 @@
{{ define "main" }}
<h1>
{{ partial "icon.html" "filter" }}
{{ if eq .Data.Singular "tag" }}
{{ partial "icon.html" "tag" }}
{{ else if eq .Data.Singular "category" }}
{{ partial "icon.html" "folder" }}
{{ else }}
{{ partial "icon.html" "filter" }}
{{ end }}
{{ .Title | markdownify }}
{{ partial "rss-link.html" . }}
</h1>
{{ partial "post-metadata/taxonomy.html" . }}
{{ with .Content }}
{{ . }}
{{ end }}