From db52aa994294f3f2a412efee7802c752073018e2 Mon Sep 17 00:00:00 2001 From: Northerner-coder <50540933+Northerner-coder@users.noreply.github.com> Date: Fri, 16 Oct 2020 12:42:32 -0400 Subject: layouts: Add DateFormat parameter (#39) * User can change Date Format to be displayed in Front Matter * Formats supported by Hugo can be found here: https://gohugo.io/functions/format/#hugo-date-and-time-templating-reference --- layouts/_default/archives.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'layouts/_default/archives.html') diff --git a/layouts/_default/archives.html b/layouts/_default/archives.html index ce0c153..e2e6993 100644 --- a/layouts/_default/archives.html +++ b/layouts/_default/archives.html @@ -22,7 +22,7 @@ {{- .Title | markdownify }}
- + {{- if $.Site.Params.ShowReadingTime }} ยท  {{- $default_txt := print .ReadingTime " " "min" }} {{- i18n "read_time" .ReadingTime | default $default_txt }}{{ end }} -- cgit v1.2.3