From 378d0f14d6e2172c90c872e70efb9f407a9c640a Mon Sep 17 00:00:00 2001 From: "Evan G." Date: Sun, 19 May 2024 13:15:23 -0500 Subject: [PATCH] Update Logic --- layouts/partials/metadata.html | 31 +++++++++++++++++-------------- 1 file changed, 17 insertions(+), 14 deletions(-) diff --git a/layouts/partials/metadata.html b/layouts/partials/metadata.html index 29ceb5f..c7a229c 100644 --- a/layouts/partials/metadata.html +++ b/layouts/partials/metadata.html @@ -4,19 +4,22 @@
{{ if .PublishDate }} -{{ if and (ne $lastmodTime $dateTime) (gt .Lastmod .Date) }} - - (first posted ) -{{ else }} -Date Published: + {{ if and (ne $lastmodTime $dateTime) (gt .Lastmod .Date) }} + + (first posted ) + {{ else }} + Date Published: + {{ end }} {{ end }} + {{ with .Params.tags }} +
+ Tags: + {{ range . }} + {{ $href := print "/tags/" (urlize .) }} + {{ . }} + {{ end }} +
+{{ else }} + {{ end }} -{{ with .Params.tags }} -
-Tags: -{{ range . }} -{{ $href := print "/tags/" (urlize .) }} -{{ . }} -{{ end }} - -{{ end }} +