🚸 Add groupByYear to front matter

This commit is contained in:
James Panther
2021-10-27 10:48:29 +11:00
parent 4c13c4d776
commit 14a6aba0b5
3 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -3,7 +3,7 @@
{{ if gt .Pages 0 }}
<section>
{{ range (.Paginate (.Pages.GroupByDate "2006")).PageGroups }}
{{ if $.Site.Params.list.groupByYear }}
{{ if $.Params.groupByYear | default ($.Site.Params.list.groupByYear | default true) }}
<h2 class="mt-12 text-2xl font-bold first:mt-8 text-neutral-700 dark:text-neutral-300">
{{ .Key }}
</h2>