From 5520ed119f1e587cf51727de2360da9252512967 Mon Sep 17 00:00:00 2001
From: Charles Brunet <charles@cbrunet.net>
Date: Thu, 21 Apr 2022 17:15:53 +0000
Subject: [PATCH] use time.Format to format dates. It allows dates to be localized. (#537)
---
layouts/post/summary.html | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/layouts/post/summary.html b/layouts/post/summary.html
index aa92cc7..05653f5 100644
--- a/layouts/post/summary.html
+++ b/layouts/post/summary.html
@@ -1,7 +1,7 @@
<div class="mb3 pa4 {{ $.Param "text_color" | default "mid-gray" }} overflow-hidden">
{{ if .Date }}
<div class="f6">
- {{ .Date.Format (default "January 2, 2006" .Site.Params.date_format) }}
+ {{ .Date | time.Format (default "January 2, 2006" .Site.Params.date_format) }}
</div>
{{ end }}
<h1 class="f3 near-black">
--
Gitblit v1.10.0