sgregoratto.me

Hugo files for www.sgregoratto.me
git clone git://git.sgregoratto.me/sgregoratto.me
Log | Files | Refs

commit f7dc417c9873fa40a3591e25946e973b216ee5bb
parent c4ed8d6d4bc5bb28e922d5d8928469c7719bf078
Author: Stephen Gregoratto <dev@sgregoratto.me>
Date:   Sat, 27 Apr 2019 17:21:55 +1000

Add date format in header template

Diffstat:
Mlayouts/_default/single.html | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/layouts/_default/single.html b/layouts/_default/single.html @@ -1,7 +1,8 @@ {{ partial "header.html" . }} <header> <h1 class="title">{{.Title}}</h1> -<time class="date">{{ .Date.Format "January 2, 2006" }}</time> +{{ if .Params.Subtitle }}<p class="subtitle">{{.Params.Subtitle}}</p>{{end}} +<p><time class="date">{{ .Date.Format "January 2, 2006" }}</time></p> </header> {{ .Content }} {{ partial "footer.html" . }}