mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-01-24 03:43:42 -08:00
disable rss feed on home page
This commit is contained in:
parent
c7d600bba2
commit
b2f9303e99
2 changed files with 4 additions and 2 deletions
|
@ -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,
|
||||||
|
|
|
@ -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>
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue