From 85b773e7bf5ec27bbcf04dcb10c5a7ada4079bf5 Mon Sep 17 00:00:00 2001 From: jacmoe Date: Tue, 6 Dec 2022 03:19:16 +0100 Subject: [PATCH] Added dateFormat site Param Makes it possible to use any date format --- layouts/partials/date.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/layouts/partials/date.html b/layouts/partials/date.html index a66a7b8..bbaaf31 100644 --- a/layouts/partials/date.html +++ b/layouts/partials/date.html @@ -1,5 +1,5 @@ -{{ if eq site.Language.Lang "it" }} - {{ .Format "02-01-2006" }} +{{ if site.Params.dateFormat }} + {{ .Format site.Params.dateFormat }} {{ else }} {{ .Format "2006-01-02" }} {{ end }}