feat: add last modified date as an option

This commit is contained in:
Henk Verlinde
2022-01-17 19:50:23 +01:00
parent 9a9f37b3a2
commit 40a8705ab6
6 changed files with 48 additions and 15 deletions

View File

@ -0,0 +1,6 @@
<!--
Returns formatted date.
Usage: partial "docs/date" (dict "Date" .Date "Format" .Site.Params.BookDateFormat)
-->
{{ $format := default "January 2, 2006" .Format -}}
{{ return (.Date.Format $format) -}}