From 4bbc7b9a7de0002173f38918cfd69a6e64d86e00 Mon Sep 17 00:00:00 2001 From: Oscar Najera Date: Fri, 13 Oct 2023 03:00:27 +0200 Subject: Post & metadata visibility --- layouts/partials/metadata.html | 40 ++++++++++++++++++++++++---------------- layouts/partials/post.html | 34 +++++++++++++++++----------------- 2 files changed, 41 insertions(+), 33 deletions(-) (limited to 'layouts/partials') diff --git a/layouts/partials/metadata.html b/layouts/partials/metadata.html index f4e48e8..baab03a 100644 --- a/layouts/partials/metadata.html +++ b/layouts/partials/metadata.html @@ -1,24 +1,32 @@ {{ $dateTime := .PublishDate.Format "2006-01-02" }} {{ $dateFormat := .Site.Params.dateFormat | default "Jan 2, 2006" }} -

By {{ range .Params.author }} {{ . }} {{ end }} -
- - -| -{{ .ReadingTime }} mins read -{{ with .Params.tags }} -| + +

+ By + {{ with .Params.author }} + — {{ delimit . ", " }} + {{ end }} + + +
+ + + | {{ .ReadingTime }} mins read + {{ with .Params.tags }} + | {{ range . }} - {{ $href := print (absURL "tags/") (urlize .) }} - {{ . }} + {{ $href := print (absURL "tags/") (urlize .) }} + {{ . }} {{ end }} -{{ end }} -{{ with .Params.categories }} -| + {{ end }} + {{ with .Params.categories }} + | {{ range . }} - {{ $href := print (absURL "tags/") (urlize .) }} - {{ . }} + {{ $href := print (absURL "tags/") (urlize .) }} + {{ . }} {{ end }} -{{ end }} + {{ end }}

diff --git a/layouts/partials/post.html b/layouts/partials/post.html index c1e66d5..a950810 100644 --- a/layouts/partials/post.html +++ b/layouts/partials/post.html @@ -1,20 +1,20 @@
- -

{{.Title }}

-
-- cgit v1.2.3