diff --git a/layouts/_default/rss.xml b/layouts/_default/rss.xml
index 64ec7a9..18561d2 100644
--- a/layouts/_default/rss.xml
+++ b/layouts/_default/rss.xml
@@ -21,9 +21,11 @@
{{ printf "" .Permalink .MediaType | safeHTML }}
{{ end }}
+ {{- $limit := .Site.Config.Services.RSS.Limit -}}
+
{{ if .IsHome }}
- {{ $filteredPages := .Site.RegularPages }}
+ {{ $filteredPages := .Site.RegularPages | first $limit }}
{{ range $.Param "notAllowedTypesInHomeFeed" }}
{{ $filteredPages = (where $filteredPages "Type" "!=" (lower .)) }}
{{ end }}
@@ -68,7 +70,7 @@
{{ else }}
- {{ range .Pages }}
+ {{ range (.Pages | first $limit) }}
-
{{ .Title }}
{{ .Permalink }}