From e3402457805c0df65b96833f15579c4153c17700 Mon Sep 17 00:00:00 2001 From: Djordje Atlialp Date: Sun, 6 Sep 2020 10:59:11 +0200 Subject: [PATCH] Display categories in posts --- README.md | 2 +- exampleSite/config.toml | 2 +- layouts/_default/single.html | 14 ++++---------- layouts/partials/categories.html | 9 +++++++++ layouts/partials/tags.html | 9 +++++++++ layouts/posts/single.html | 14 ++------------ 6 files changed, 26 insertions(+), 24 deletions(-) create mode 100644 layouts/partials/categories.html create mode 100644 layouts/partials/tags.html diff --git a/README.md b/README.md index 6437df9..812599b 100644 --- a/README.md +++ b/README.md @@ -69,7 +69,7 @@ paginate = 10 dateform = "Jan 2, 2006" dateformShort = "Jan 2" dateformNum = "2006-01-02" - dateformNumTime = "2006-01-02 15:04 -0700" + dateformNumTime = "2006-01-02 15:04" # Subtitle for home homeSubtitle = "A simple and beautiful blog" diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 8a8585f..9de6227 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -51,7 +51,7 @@ disableHugoGeneratorInject = false dateform = "Jan 2, 2006" dateformShort = "Jan 2" dateformNum = "2006-01-02" - dateformNumTime = "2006-01-02 15:04 -0700" + dateformNumTime = "2006-01-02 15:04" # Metadata mostly used in document's head # diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 5275c6b..c5c04c0 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -14,14 +14,14 @@

{{ .Title | markdownify }}

- {{- if .Params.toc }} + {{ if .Params.toc }}

- {{- end }} + {{ end }} {{ with .Params.Cover }} @@ -35,14 +35,8 @@