From da65a6781a240d0ac072854db8838843bc4dd6df Mon Sep 17 00:00:00 2001 From: Kim Paolo Laberinto Date: Sun, 24 Jan 2021 18:52:47 -0600 Subject: [PATCH] Add tags to the post metadata component --- layouts/partials/components/post-metadata.html | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/layouts/partials/components/post-metadata.html b/layouts/partials/components/post-metadata.html index 9fa9a402..0f5651a3 100644 --- a/layouts/partials/components/post-metadata.html +++ b/layouts/partials/components/post-metadata.html @@ -31,4 +31,16 @@ {{ end }} {{ end }} + + {{ with .GetTerms "tags" }} +
+ + {{ range $index, $value := . }} + {{ if gt $index 0 }} + , + {{ end -}} + #{{ .LinkTitle }} + {{ end }} +
+ {{ end }} \ No newline at end of file