limit the amount of posts used in rss feed
This commit is contained in:
parent
36bda6965a
commit
c1979e9c0c
|
@ -535,7 +535,7 @@ def create_rss_feed(rss_entries, rss_template, rss_item_template, site_folder):
|
|||
rss_entries.sort(key=lambda x: x["iso_date"], reverse=True)
|
||||
|
||||
rss_items = ""
|
||||
for rss_entry in rss_entries:
|
||||
for rss_entry in rss_entries[:50]:
|
||||
entry_template = itemTemplate
|
||||
entry_template = entry_template.replace(
|
||||
'rssItemTitle', rss_entry["title"])
|
||||
|
|
Loading…
Reference in a new issue