From b2f9303e99f0a68d5198948cb5b27d0757a0c204 Mon Sep 17 00:00:00 2001 From: rimu <3310831+rimu@users.noreply.github.com> Date: Tue, 27 Feb 2024 06:49:37 +1300 Subject: [PATCH] disable rss feed on home page --- app/main/routes.py | 4 ++-- app/templates/index.html | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/app/main/routes.py b/app/main/routes.py index 240a70b0..9b6928eb 100644 --- a/app/main/routes.py +++ b/app/main/routes.py @@ -134,8 +134,8 @@ def home_page(type, sort): low_bandwidth=low_bandwidth, SUBSCRIPTION_PENDING=SUBSCRIPTION_PENDING, SUBSCRIPTION_MEMBER=SUBSCRIPTION_MEMBER, etag=f"{type}_{sort}_{hash(str(g.site.last_active))}", next_url=next_url, prev_url=prev_url, - rss_feed=f"https://{current_app.config['SERVER_NAME']}/feed", - rss_feed_name=f"Posts on " + g.site.name, + #rss_feed=f"https://{current_app.config['SERVER_NAME']}/feed", + #rss_feed_name=f"Posts on " + g.site.name, title=f"{g.site.name} - {g.site.description}", description=shorten_string(markdown_to_text(g.site.sidebar), 150), content_filters=content_filters, type=type, sort=sort, diff --git a/app/templates/index.html b/app/templates/index.html index 4b17f15c..63d3e26a 100644 --- a/app/templates/index.html +++ b/app/templates/index.html @@ -67,9 +67,11 @@