From f3a7cee246b1c08eb05d4fa7dade1a3620024ccf Mon Sep 17 00:00:00 2001 From: Gyorgy Orban Date: Sat, 31 Aug 2019 15:10:03 +0200 Subject: [WIP] inroduce new post header with author and categories --- layouts/_default/single.html | 3 ++- layouts/partials/postheader.html | 12 ++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 layouts/partials/postheader.html diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 8e33633..a568213 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -1,7 +1,8 @@ {{ partial "header.html" . }} +
-

{{ .Title }}

+ {{ partial "postheader.html" . }}
{{ .Content }}
{{ partial "postfooter.html" . }}
diff --git a/layouts/partials/postheader.html b/layouts/partials/postheader.html new file mode 100644 index 0000000..1584dd5 --- /dev/null +++ b/layouts/partials/postheader.html @@ -0,0 +1,12 @@ +

{{ .Title }}

+ +{{ .Site.Author.name }}, {{ .Date.Format "2 Jan 2006" }} + +{{ if .Params.categories }} + on + {{ range .Params.categories }} +
+ {{.}} +
+ {{ end }} +{{ end }} -- cgit v1.2.3