From 80d46a9b1623c1bd13db6d10cd2e882bf92893c9 Mon Sep 17 00:00:00 2001 From: Nicolas MASSE Date: Tue, 22 Dec 2020 21:51:02 +0100 Subject: [PATCH] add comments --- layouts/partials/post-metadata.html | 43 +++++++++++++++++------------ 1 file changed, 25 insertions(+), 18 deletions(-) diff --git a/layouts/partials/post-metadata.html b/layouts/partials/post-metadata.html index 9d960da..8f6fbba 100644 --- a/layouts/partials/post-metadata.html +++ b/layouts/partials/post-metadata.html @@ -1,4 +1,5 @@
+ {{- with .current.PublishDate }} {{ i18n "published_on" }} @@ -6,26 +7,32 @@ {{- end }} - {{- if gt .current.Params.topics 0 -}} - {{- range .current.Params.topics -}} - {{- if or (not $.parent.Data.topic) (ne . $.parent.Data.Term) }} - - {{ . }} -   - - {{- end -}} - {{- end -}} + + {{ range .current.Params.topics -}} + + {{- if or (not $.parent.Data.topic) (ne . $.parent.Data.Term) }} + + {{ . }} +   + + {{- end -}} {{- end }} - {{- if gt .current.Params.opensource 0 -}} - {{- range .current.Params.opensource -}} - {{- if or (not $.parent.Data.opensource) (ne . $.parent.Data.Term) }} - - {{ . }} -   - - {{- end -}} - {{- end -}} + + + {{ range .current.Params.opensource -}} + + {{- if or (not $.parent.Data.opensource) (ne . $.parent.Data.Term) }} + + {{ . }} +   + + {{- end -}} {{- end }} + + {{- if eq .current.Type "blog" }}