From 45206aa28f4eea171d6e00be861b5a258281b789 Mon Sep 17 00:00:00 2001 From: Francesco Date: Tue, 30 Apr 2024 22:29:00 +0200 Subject: Added custom list entries date format config --- layouts/partials/post-entry.html | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'layouts/partials/post-entry.html') diff --git a/layouts/partials/post-entry.html b/layouts/partials/post-entry.html index 1752768..5c89bca 100644 --- a/layouts/partials/post-entry.html +++ b/layouts/partials/post-entry.html @@ -1,5 +1,13 @@
-

{{ .Date.Format "2 Jan 2006" }}

+ + {{ $dateFormat := "2 Jan 2006"}} + {{ with .Site.Params.listDateFormat }} + {{ $dateFormat = .}} + {{ end }} + + +

{{ .Date.Format $dateFormat }}

+

{{ .Title }}

-- cgit v1.2.3