huge upgrade to theme and pagefind search bar.
This commit is contained in:
6
themes/hugo-book.backup/layouts/_partials/docs/date.html
Normal file
6
themes/hugo-book.backup/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 (time.Format $format .Date) -}}
|
||||
Reference in New Issue
Block a user