From b3aca13c62a4b73d6bd0c1d863cde02f26e27547 Mon Sep 17 00:00:00 2001
From: John Bowdre
Date: Tue, 22 Aug 2023 19:39:37 -0500
Subject: [PATCH] display tags on posts
---
layouts/partials/aside.html | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/layouts/partials/aside.html b/layouts/partials/aside.html
index e799135..daac866 100644
--- a/layouts/partials/aside.html
+++ b/layouts/partials/aside.html
@@ -4,12 +4,20 @@
{{ if .Params.author }}By {{ .Params.author }}{{ if .Date }}, {{ end }}{{ end }}
{{ if .Date }}{{ .Date.Format "2006-01-02" }}{{ end }}
+
+ {{- with .Params.tags -}}
+ {{- range . }}
+ {{- $tag := urlize . -}}
+ [{{ . }}]
+ {{- end }}
+ {{- end }}
+
{{ end }}
-
{{ if and (gt .WordCount 400 ) (gt (len .TableOfContents) 180) }}
On this page
{{ .TableOfContents }}
+
{{ end }}
{{- $posts := where .Site.RegularPages "Type" "in" .Site.Params.mainSections }}