diff --git a/layouts/index.html b/layouts/index.html
index a936a8d..5ae9ae4 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -2,7 +2,8 @@
{{if ne .Site.Params.displayRecent false}}
recent
- {{range first (default 4 .Site.Params.recentMax) (where .Site.RegularPages "Section" "ne" "posts")}}
+ {{ $pages := where .Site.RegularPages "Type" "in" .Site.Params.mainSections }}
+ {{range first (default 4 .Site.Params.recentMax) (where $pages "Section" "ne" "posts")}}
{{ .Title }}
{{$page := .}}
diff --git a/layouts/partials/aside.html b/layouts/partials/aside.html
index 07e3561..8df3e9a 100644
--- a/layouts/partials/aside.html
+++ b/layouts/partials/aside.html
@@ -1,6 +1,8 @@