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 }}