diff --git a/layouts/partials/helpers/publish-date.html b/layouts/partials/helpers/publish-date.html index e490423e..7c9f40f0 100644 --- a/layouts/partials/helpers/publish-date.html +++ b/layouts/partials/helpers/publish-date.html @@ -1,4 +1,6 @@ {{- $date := .root.Date | default .root.Lastmod }} +{{- $date_format := .root.Site.Params.date_format | default "2006-01-02" }} + {{- if not (eq .badge false) }} {{- else }} @@ -16,7 +18,7 @@ {{- printf " badge-%s" "light" -}} {{- end -}}"> {{- end -}}