Be clearer that the Blog RSS feed relates to a subset

Rather than modifying the top-level RSS link when viewing by tag, I've added an
extra link next to the "Displaying posts tagged ..." link.
This commit is contained in:
Ben Sturmfels 2025-07-24 14:29:59 +10:00
parent aa02f00aba
commit 9254befd7e
Signed by: bsturmfels
GPG key ID: 023C05E2C9C068F0
2 changed files with 3 additions and 3 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/{% if query_string %}?{{ query_string }}{% endif %}" /> <link rel="alternate" type="application/rss+xml" title="RSS" href="/feeds/blog/" />
{% endblock %} {% endblock %}
{% block outercontent %} {% block outercontent %}

View file

@ -8,13 +8,13 @@
<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/{% 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> <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>
{% if authors or tags %} {% if authors or tags %}
<p>Displaying posts <p>Displaying posts
{% if authors %}by {% for author in authors %}{% if not forloop.last %}{% if not forloop.first %}, {% endif %}{% endif %}<a href="{{ author.biography_url }}">{{ author.formal_name }}</a>{% if forloop.revcounter == 2 %} and {% endif %}{% endfor %}{% endif %} {% if authors %}by {% for author in authors %}{% if not forloop.last %}{% if not forloop.first %}, {% endif %}{% endif %}<a href="{{ author.biography_url }}">{{ author.formal_name }}</a>{% if forloop.revcounter == 2 %} and {% endif %}{% endfor %}{% endif %}
{% if tags %}tagged {% for tag in tags %}{% if not forloop.last %}{% if not forloop.first %}, {% endif %}{% endif %}<a href="{{ tag.get_absolute_url }}">{{ tag.label }}</a>{% if forloop.revcounter == 2 %} or {% endif %}{% endfor %}{% endif %} {% if tags %}tagged {% for tag in tags %}{% if not forloop.last %}{% if not forloop.first %}, {% endif %}{% endif %}<a href="{{ tag.get_absolute_url }}">{{ tag.label }}</a>{% if forloop.revcounter == 2 %} or {% endif %}{% endfor %}{% endif %}
</p> <a href="/feeds/blog/{% if query_string %}?{{ query_string }}{% endif %}"><img src="{% static 'img/feed-icon-14x14.png' %}" alt="[RSS]"/></a></p>
{% endif %} {% endif %}
{% for entry in blog_entries %} {% for entry in blog_entries %}