Skip to content

Commit

Permalink
fix: correct archive month localization
Browse files Browse the repository at this point in the history
  • Loading branch information
razonyang committed Nov 5, 2023
1 parent cc4e1de commit a464d74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layouts/partials/archives/year.html
Original file line number Diff line number Diff line change
Expand Up @@ -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) -}}
<div class="archive card row component border-1" data-date="{{ $month }}">
<div class="card-header">
<h2 class="card-title fs-4 text-surface">{{ $month }}</h2>
Expand Down

0 comments on commit a464d74

Please sign in to comment.