diff options
author | Alex Shpak <alex-shpak@users.noreply.github.com> | 2019-03-29 16:59:00 +0100 |
---|---|---|
committer | Alex Shpak <alex-shpak@users.noreply.github.com> | 2019-03-29 16:59:00 +0100 |
commit | 941ca77a327f595e50e0cd22d35e984afb29530d (patch) | |
tree | 94edc9227d22a7ee3dae9eae492b74cf603e4468 /layouts/posts/single.html | |
parent | 5b652a1bb136accac19592614bf8b7cdcf18343b (diff) |
Rename DateFormat to BookDateFormat, make format optional
Diffstat (limited to 'layouts/posts/single.html')
-rw-r--r-- | layouts/posts/single.html | 3 |
1 files changed, 2 insertions, 1 deletions
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 -}} <header> <h1>{{ .Title }}</h1> <h5> - <strong>{{ .Date.Format .Site.Params.DateFormat }}</strong> + <strong>{{ .Date.Format $dateFormat }}</strong> </h5> </header> <article class="markdown"> |