From 78859c7cccd3f757c82403da90bc7dcbff708b6f Mon Sep 17 00:00:00 2001 From: Anna Wiggins Date: Thu, 31 Aug 2023 01:06:45 +0000 Subject: [PATCH] Override date and author displays, support custom author per post. --- layouts/partials/post_meta/author.html | 9 +++++++++ layouts/partials/post_meta/date.html | 13 +++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 layouts/partials/post_meta/author.html create mode 100644 layouts/partials/post_meta/date.html diff --git a/layouts/partials/post_meta/author.html b/layouts/partials/post_meta/author.html new file mode 100644 index 0000000..3f8c7ef --- /dev/null +++ b/layouts/partials/post_meta/author.html @@ -0,0 +1,9 @@ +
+ + {{- if .Params.author -}} + by {{ .Params.author }} + {{- else if .Site.Author.name -}} + by {{ .Site.Author.name }} + {{- end -}} + +
diff --git a/layouts/partials/post_meta/date.html b/layouts/partials/post_meta/date.html new file mode 100644 index 0000000..40c8a17 --- /dev/null +++ b/layouts/partials/post_meta/date.html @@ -0,0 +1,13 @@ +{{- if not .Date.IsZero }} +
+ on + + {{- if ne .Date .Lastmod }} + + {{- end -}} +
+{{- end }}