Apply page limit after page selection

master
Will Faught 2 years ago
parent 9f81fbcd50
commit ceeda23750

@ -4,12 +4,12 @@
{{ $pages := (cond $page.IsHome site $page).RegularPages }} {{ $pages := (cond $page.IsHome site $page).RegularPages }}
{{ $title := partial "paige/title.html" $page }} {{ $title := partial "paige/title.html" $page }}
{{ $pages = where $pages "Params.paige.feed.hide_page" "ne" true }}
{{ if ge $limit 0 }} {{ if ge $limit 0 }}
{{ $pages = $pages | first $limit }} {{ $pages = $pages | first $limit }}
{{ end }} {{ end }}
{{ $pages = where $pages "Params.paige.feed.hide_page" "ne" true }}
{{ printf "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?>" | safeHTML }} {{ printf "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?>" | safeHTML }}
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel> <channel>

Loading…
Cancel
Save