Apply page limit after page selection
This commit is contained in:
@@ -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>
|
||||||
|
Reference in New Issue
Block a user