archive list layout default value from int to str

This commit is contained in:
Ben Gnoinski 2019-11-13 20:10:05 -08:00
parent 59fbf3cc1d
commit ada7ed9068
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@
</span>
<main class="main archive">
<div>
{{ range (and (where .Site.RegularPages "Type" "!=" "about") (where .Site.RegularPages "Type" "!=" "archive")).GroupByDate (.Site.Params.archiveGroupByDate | default 2006) }}
{{ range (and (where .Site.RegularPages "Type" "!=" "about") (where .Site.RegularPages "Type" "!=" "archive")).GroupByDate (.Site.Params.archiveGroupByDate | default "2006") }}
<span class="archive__key">{{ .Key }}</span>
<ul class="archive__ul">
{{ range .Pages }}