From 6467d9d621438458c611e2030adcefa7b43c56ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=93scar=20N=C3=A1jera?= Date: Mon, 16 Jul 2018 01:11:07 +0200 Subject: Post metadata --- layouts/_default/single.html | 15 +++++++++++---- layouts/partials/meta.html | 15 +++++++++++++++ 2 files changed, 26 insertions(+), 4 deletions(-) create mode 100644 layouts/partials/meta.html (limited to 'layouts') diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 1fab028..c0abf4c 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -1,6 +1,6 @@ {{ define "main" }}
-
@@ -8,7 +8,10 @@

{{ .Title }}

-
{{ .Date.Format "Mon, Jan 2, 2006" }}
+ {{ if not (eq .Params.showMeta false) }} +
{{ .Date.Format "Mon, Jan 2, 2006" }}
+ {{ partial "meta.html" . }} + {{ end }}
@@ -39,6 +42,8 @@ + + {{ if not (eq .Params.showActions false) }}
{{ with .NextInSection }} @@ -54,11 +59,13 @@ {{ end}}
- {{ if not (eq .Params.comments false) }} + {{ end}} + + {{ if not (eq .Params.comments false) }}
{{ template "_internal/disqus.html" . }}
- {{ end }} + {{ end }}
{{ end }} diff --git a/layouts/partials/meta.html b/layouts/partials/meta.html new file mode 100644 index 0000000..84e76e5 --- /dev/null +++ b/layouts/partials/meta.html @@ -0,0 +1,15 @@ +{{ with .Params.categories }} + +{{ range . }} +{{ . }} +{{ end }} +{{ end }} + +{{ with .Params.tags }} + +{{ range . }} +{{ . }} +{{ end }} +{{ end }} -- cgit v1.2.3