Rename DateFormat to BookDateFormat, make format optional

This commit is contained in:
Alex Shpak
2019-03-29 16:59:00 +01:00
parent 5b652a1bb1
commit 941ca77a32
5 changed files with 19 additions and 12 deletions
+2 -1
View File
@@ -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">