From a464d74dca4aaa13b88abd053e15aed0554fecf0 Mon Sep 17 00:00:00 2001 From: razonyang Date: Sun, 5 Nov 2023 23:44:34 +0800 Subject: [PATCH] fix: correct archive month localization --- layouts/partials/archives/year.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/archives/year.html b/layouts/partials/archives/year.html index fb7f8f9c..673ef9a5 100644 --- a/layouts/partials/archives/year.html +++ b/layouts/partials/archives/year.html @@ -4,7 +4,7 @@ {{- $pages = where $pages ".Date" ">=" $fromDate }} {{- $pages = where $pages ".Date" "<" $toDate }} {{- range $pages.GroupByDate "01" -}} -{{- $month := (time (printf "2006-%s-01" .Key)).Format (default "January" site.Params.archive.monthFormat) -}} +{{- $month := (time (printf "2006-%s-01" .Key)) | time.Format (default "January" site.Params.archive.monthFormat) -}}

{{ $month }}