From 882af0656327476b523e0d6538b29ae9ad6eda28 Mon Sep 17 00:00:00 2001 From: Serghei Iakovlev Date: Tue, 31 May 2022 00:19:18 +0200 Subject: Mior reformatting of posts layout --- layouts/partials/post-meta/author.html | 3 +++ layouts/partials/post-meta/date.html | 21 +++++++++++---------- 2 files changed, 14 insertions(+), 10 deletions(-) create mode 100644 layouts/partials/post-meta/author.html (limited to 'layouts/partials/post-meta') diff --git a/layouts/partials/post-meta/author.html b/layouts/partials/post-meta/author.html new file mode 100644 index 0000000..1b56004 --- /dev/null +++ b/layouts/partials/post-meta/author.html @@ -0,0 +1,3 @@ +{{ with .Params.author }} + {{ i18n "by" . }} +{{ end }} diff --git a/layouts/partials/post-meta/date.html b/layouts/partials/post-meta/date.html index 92401e7..04a814a 100644 --- a/layouts/partials/post-meta/date.html +++ b/layouts/partials/post-meta/date.html @@ -1,10 +1,11 @@ -{{- if not .Date.IsZero }} - -{{- if ne .Date .Lastmod }} - -{{- end -}} -{{- end }} +{{ if not .Date.IsZero }} + + + {{ if ne .Date .Lastmod }} + + {{ end }} +{{ end }} -- cgit v1.2.3