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" }}