diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index e35e981..d510434 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -37,17 +37,10 @@ diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 351f729..d287dd9 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -30,7 +30,7 @@ {{ define "main" }} {{ $truncate := default true .Site.Params.truncate }} -{{ $paginator := .Paginate (where .Data.Pages "Type" "post") }} +{{ $paginator := .Paginate (where .Site.Pages "Section" "in" .Site.Params.mainSections) }} {{ range $paginator.Pages }} {{ if $truncate }} {{ .Render "summary" }} diff --git a/layouts/partials/recent.html b/layouts/partials/recent.html index 3136837..5cc7f67 100644 --- a/layouts/partials/recent.html +++ b/layouts/partials/recent.html @@ -2,7 +2,7 @@

{{ i18n "recentPosts" }}

    {{ $num_recent_posts := (index .Site.Params.sidebar "num_recent_posts" | default 5) }} -{{ range first $num_recent_posts (where .Site.RegularPages "Type" "post") }} +{{ range first $num_recent_posts (where .Site.Pages "Section" "in" .Site.Params.mainSections) }}
  1. {{.Title | markdownify }}
  2. {{ end }}