From 941ca77a327f595e50e0cd22d35e984afb29530d Mon Sep 17 00:00:00 2001 From: Alex Shpak Date: Fri, 29 Mar 2019 16:59:00 +0100 Subject: Rename DateFormat to BookDateFormat, make format optional --- layouts/posts/single.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'layouts/posts/single.html') diff --git a/layouts/posts/single.html b/layouts/posts/single.html index 36585e5..a7f94ed 100644 --- a/layouts/posts/single.html +++ b/layouts/posts/single.html @@ -1,8 +1,9 @@ {{ define "main" }} +{{- $dateFormat := default "January 2, 2006" .Site.Params.BookDateFormat -}}

{{ .Title }}

- {{ .Date.Format .Site.Params.DateFormat }} + {{ .Date.Format $dateFormat }}
-- cgit v1.2.3