diff --git a/layouts/feed/single.rss.xml b/layouts/feed/single.rss.xml index 4b1fd95e0e..8409c10c93 100644 --- a/layouts/feed/single.rss.xml +++ b/layouts/feed/single.rss.xml @@ -13,7 +13,7 @@ {{ $home }} - {{ $pages := (where .Site.AllPages "Section" "blog").ByPublishDate }} + {{ $pages := (where .Site.Pages "Section" "blog").ByPublishDate }} {{ range $post := $pages }} {{ if and (not $post.Draft) $post.IsPage }} diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 941743d94d..dc72e3ca26 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -1,4 +1,4 @@ -{{ $posts := (where .Site.AllPages "Section" "blog").ByPublishDate.Reverse }} +{{ $posts := (where .Site.Pages "Section" "blog").ByPublishDate.Reverse }} {{ $latest_post := index $posts 0 }} {{ $version := .Site.Data.args.version }} @@ -6,7 +6,9 @@