diff --git a/layouts/index.html b/layouts/index.html
index 270c0e7..83654c3 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -9,7 +9,7 @@
{{ define "main" }}
- {{ $paginator := .Paginate (where .Site.RegularPages "Type" "posts") }}
+ {{ $paginator := .Paginate (where .Site.RegularPages "Type" "in" site.Params.mainSections) }}
{{ range $paginator.Pages }}
{{- partial "page-summary" . -}}
{{ end }}
diff --git a/layouts/partials/widgets/recent.html b/layouts/partials/widgets/recent.html
index e19345e..c10a6d0 100644
--- a/layouts/partials/widgets/recent.html
+++ b/layouts/partials/widgets/recent.html
@@ -2,7 +2,7 @@
- {{ $recent := first 5 (where .Site.RegularPages "Section" "posts") }}
+ {{ $recent := first 5 (where .Site.RegularPages "Type" "in" site.Params.mainSections) }}
{{ range $recent }}
- {{ .Title }}
{{ end }}