From 061a9c060832b4bb0e8d09ac12f837554c345e22 Mon Sep 17 00:00:00 2001 From: Michael Grosser Date: Sun, 12 Apr 2020 14:13:50 +0000 Subject: [PATCH] Fix date_format config --- layouts/partials/helpers/publish-date.html | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 -}}