From 41db6a77dc71c5a730ec18fe02080ffe9aa06bb8 Mon Sep 17 00:00:00 2001 From: colorchestra Date: Tue, 4 Aug 2020 13:33:15 +0200 Subject: [PATCH] add dateFmt option to single and summary views --- README.md | 7 ++++++- layouts/_default/single.html | 2 +- layouts/_default/summary.html | 2 +- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 686b846..a65ce9f 100644 --- a/README.md +++ b/README.md @@ -30,9 +30,14 @@ Next, open `config.toml` in the base of the Hugo site and ensure the theme optio theme = "smol" ``` -Lastly, add the following lines to your `config.toml` to make use of all the menu entries in the header and footer sections if you need them. +Lastly, add the following lines to your `config.toml` to set site parameters and make use of all the menu entries in the header and footer sections if you need them. ``` +# Parameters +[params] + subtitle = "Your blog subtitle goes here!" + dateFmt = "02.01.2006 15:04" + # Header [menu] [[menu.main]] diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 1de478c..b334487 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -2,7 +2,7 @@

{{ .Title }}

- + {{ range .Params.tags }} {{ . }} {{ end }} diff --git a/layouts/_default/summary.html b/layouts/_default/summary.html index 05b75a9..a347932 100644 --- a/layouts/_default/summary.html +++ b/layouts/_default/summary.html @@ -1,6 +1,6 @@

{{ .Title }}

- + {{ range .Params.tags }} {{ . }} {{ end }}