Revert "Merge branch 'canary' into master" (#712)

Revert "Merge branch 'canary' into master (#711)"

This reverts commit 8a597a5c9c.
This commit is contained in:
Jimmy Cai
2022-10-29 17:14:19 +02:00
committed by GitHub
parent 8a597a5c9c
commit b03390d237
73 changed files with 1976 additions and 892 deletions
+3 -1
View File
@@ -10,7 +10,9 @@
<h2 class="widget-title section-title">{{ T "widget.archives.title" }}</h2>
{{ $pages := where $context.Site.RegularPages "Type" "in" $context.Site.Params.mainSections }}
{{ $archives := $pages.GroupByDate "2006" }}
{{ $notHidden := where $context.Site.RegularPages "Params.hidden" "!=" true }}
{{ $filtered := ($pages | intersect $notHidden) }}
{{ $archives := $filtered.GroupByDate "2006" }}
<div class="widget-archive--list">
{{ range $index, $item := first (add $limit 1) ($archives) }}