limit the amount of posts used in rss feed

This commit is contained in:
Anish Lakhwara 2023-04-02 23:53:48 +10:00
parent 36bda6965a
commit c1979e9c0c

View file

@ -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_entries.sort(key=lambda x: x["iso_date"], reverse=True)
rss_items = "" rss_items = ""
for rss_entry in rss_entries: for rss_entry in rss_entries[:50]:
entry_template = itemTemplate entry_template = itemTemplate
entry_template = entry_template.replace( entry_template = entry_template.replace(
'rssItemTitle', rss_entry["title"]) 'rssItemTitle', rss_entry["title"])