hugo-book
This commit is contained in:
6
themes/hugo-book/layouts/partials/docs/date.html
Normal file
6
themes/hugo-book/layouts/partials/docs/date.html
Normal 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) -}}
|
||||
Reference in New Issue
Block a user