From c9145df04fef621e5dd21f5edd3d445b73f6b7e4 Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Mon, 11 Jul 2022 11:31:08 -0400 Subject: [PATCH] taglist in separate file --- layouts/partials/footer.html | 14 +------------- layouts/partials/taglist.html | 13 +++++++++++++ static/style.css | 2 ++ 3 files changed, 16 insertions(+), 13 deletions(-) create mode 100644 layouts/partials/taglist.html diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 7f72104..fe64b97 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -1,16 +1,4 @@ - {{- if isset .Params "tags" -}} - {{- $tagsLen := len .Params.tags -}} - {{- if gt $tagsLen 0 -}} -
- {{- with .Site.Params.relatedtext }}{{ . }}
{{ end -}} - {{- range $k, $v := .Params.tags -}} - {{- $url := printf "tags/%s" (. | urlize | lower) -}} - {{ . | title }} - {{- if lt $k (sub $tagsLen 1) }} · {{ end -}} - {{- end -}} -
- {{- end -}} - {{- end }} +{{ partial "taglist.html" . }}