From 94ab910470f1b2e288fb2d33f8f4ddd1f3d33f6f Mon Sep 17 00:00:00 2001 From: "Evan G." Date: Sun, 19 May 2024 12:40:12 -0500 Subject: [PATCH] Align the Metadata to the middle For easier read-flow --- layouts/partials/head.html | 3 +++ layouts/partials/metadata.html | 7 +++++-- static/css/page.css | 3 +++ 3 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 static/css/page.css diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 4d2d054..dfc6f6b 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -13,4 +13,7 @@ {{ if .IsHome }} {{ end }} + {{ if .IsPage }} + + {{ end }} diff --git a/layouts/partials/metadata.html b/layouts/partials/metadata.html index 83f1b99..29ceb5f 100644 --- a/layouts/partials/metadata.html +++ b/layouts/partials/metadata.html @@ -1,19 +1,22 @@ {{ $dateTime := .PublishDate.Format "2006-01-02" }} {{ $lastmodTime := .Lastmod.Format "2006-01-02" }} {{ $dateFormat := .Site.Params.dateFormat | default "Jan 2, 2006" }} +
{{ if .PublishDate }} {{ 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 }} +
{{ end }} diff --git a/static/css/page.css b/static/css/page.css new file mode 100644 index 0000000..38dde08 --- /dev/null +++ b/static/css/page.css @@ -0,0 +1,3 @@ +.metadata { + text-align: center; +}