aboutsummaryrefslogtreecommitdiff
path: root/layouts/partials/docs/date.html
blob: 73d69a332e9941fc7b1b9ff52c22c55f9c21d299 (plain)
1
2
3
4
5
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) -}}