blog: Remove RSS feed links next to individual tags

Instead the tags are now added to the RSS feed link at the top of the page when
in use.
This commit is contained in:
Ben Sturmfels 2025-07-23 21:57:13 +10:00
parent b74621e77e
commit a9caa490f4
2 changed files with 4 additions and 6 deletions

View file

@ -3,7 +3,7 @@
{% block category %}blog{% endblock %} {% block category %}blog{% endblock %}
{% block head %} {% block head %}
<link rel="alternate" type="application/rss+xml" title="RSS" href="/feeds/blog/" /> <link rel="alternate" type="application/rss+xml" title="RSS" href="/feeds/blog/{% if query_string %}?{{ query_string }}{% endif %}" />
{% endblock %} {% endblock %}
{% block outercontent %} {% block outercontent %}
@ -24,16 +24,14 @@
<h2>Blogs by Tag</h2> <h2>Blogs by Tag</h2>
<ul> <ul>
{% for tag in all_tags %} {% for tag in all_tags %}
<li><a href="{{ tag.get_absolute_url }}">{{ tag.label }}</a> <li><a href="{{ tag.get_absolute_url }}">{{ tag.label }}</a></li>
(<a href="/feeds/blog/?tag={{ tag.slug }}">rss</a>)</li>
{% endfor %} {% endfor %}
</ul> </ul>
<h2>Blogs by Author</h2> <h2>Blogs by Author</h2>
<ul> <ul>
{% for author in all_authors %} {% for author in all_authors %}
<li><a href="/blog/?author={{ author.username }}">{{ author.formal_name }}</a> <li><a href="/blog/?author={{ author.username }}">{{ author.formal_name }}</a></li>
(<a href="/feeds/blog/?author={{ author.username }}">rss</a>)</li>
{% endfor %} {% endfor %}
</ul> </ul>
</div> </div>

View file

@ -8,7 +8,7 @@
<p><a href="/">Home</a> / <a href="/news/">News</a></p> <p><a href="/">Home</a> / <a href="/news/">News</a></p>
</div> </div>
<h2><a href="/feeds/blog/" class="feedlink"><img src="{% static 'img/feed-icon-14x14.png' %}" alt="[RSS]"/></a> Conservancy Blog{% if author %} &mdash; {{ author.formal_name }}{% endif %}</h2> <h2><a href="/feeds/blog/{% if query_string %}?{{ query_string }}{% endif %}" class="feedlink"><img src="{% static 'img/feed-icon-14x14.png' %}" alt="[RSS]"/></a> Conservancy Blog{% if author %} &mdash; {{ author.formal_name }}{% endif %}</h2>
{% if authors or tags %} {% if authors or tags %}
<p>Displaying posts <p>Displaying posts