disable rss feed on home page

This commit is contained in:
rimu 2024-02-27 06:49:37 +13:00
parent c7d600bba2
commit b2f9303e99
2 changed files with 4 additions and 2 deletions

View file

@ -134,8 +134,8 @@ def home_page(type, sort):
low_bandwidth=low_bandwidth, low_bandwidth=low_bandwidth,
SUBSCRIPTION_PENDING=SUBSCRIPTION_PENDING, SUBSCRIPTION_MEMBER=SUBSCRIPTION_MEMBER, 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, 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=f"https://{current_app.config['SERVER_NAME']}/feed",
rss_feed_name=f"Posts on " + g.site.name, #rss_feed_name=f"Posts on " + g.site.name,
title=f"{g.site.name} - {g.site.description}", title=f"{g.site.name} - {g.site.description}",
description=shorten_string(markdown_to_text(g.site.sidebar), 150), description=shorten_string(markdown_to_text(g.site.sidebar), 150),
content_filters=content_filters, type=type, sort=sort, content_filters=content_filters, type=type, sort=sort,

View file

@ -67,9 +67,11 @@
<div class="card-body"> <div class="card-body">
<p><strong>{{ g.site.description|safe }}</strong></p> <p><strong>{{ g.site.description|safe }}</strong></p>
<p>{{ g.site.sidebar|safe }}</p> <p>{{ g.site.sidebar|safe }}</p>
{% if rss_feed %}
<p class="mt-4"> <p class="mt-4">
<a class="no-underline" href="{{ rss_feed }}" rel="nofollow"><span class="fe fe-rss"></span> RSS feed</a> <a class="no-underline" href="{{ rss_feed }}" rel="nofollow"><span class="fe fe-rss"></span> RSS feed</a>
</p> </p>
{% endif %}
</div> </div>
</div> </div>