summaryrefslogtreecommitdiff
path: root/layouts/_default/archives.html
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/_default/archives.html')
-rw-r--r--layouts/_default/archives.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/layouts/_default/archives.html b/layouts/_default/archives.html
index 4a7b122..aa419ea 100644
--- a/layouts/_default/archives.html
+++ b/layouts/_default/archives.html
@@ -2,8 +2,8 @@
<div class="archive">
<header class="page-header"><h1>{{ .Title }}</h1></header>
-
- {{ range .Site.RegularPages.GroupByPublishDate "2006" }}
+ {{ $pages := where site.RegularPages "Type" "in" site.Params.mainSections }}
+ {{ range $pages.GroupByPublishDate "2006" }}
{{ if ne .Key "0001" }}
<div class="archive-year">
<h2 class="archive-year-header">{{ replace .Key "0001" "" }}</h2>