about summary refs log tree commit diff stats
path: root/themes/bear/templates/taxonomy_single.html
diff options
context:
space:
mode:
authorAlan Pearce2023-06-20 13:04:55 +0200
committerAlan Pearce2023-06-20 13:04:55 +0200
commitb58f56fe9b3f6f7f64ba171b105bbc48b2182372 (patch)
tree1b2dce3740ee85e1ebe1326eeba49d39776e2016 /themes/bear/templates/taxonomy_single.html
parent57b397f5552ace44fa7334a55445c0c54fc7ca83 (diff)
downloadwebsite-b58f56fe9b3f6f7f64ba171b105bbc48b2182372.tar.lz
website-b58f56fe9b3f6f7f64ba171b105bbc48b2182372.tar.zst
website-b58f56fe9b3f6f7f64ba171b105bbc48b2182372.zip
Add link to RSS feeds for each tag
Diffstat (limited to 'themes/bear/templates/taxonomy_single.html')
-rw-r--r--themes/bear/templates/taxonomy_single.html5
1 files changed, 5 insertions, 0 deletions
diff --git a/themes/bear/templates/taxonomy_single.html b/themes/bear/templates/taxonomy_single.html
index d5712b0..c252440 100644
--- a/themes/bear/templates/taxonomy_single.html
+++ b/themes/bear/templates/taxonomy_single.html
@@ -1,5 +1,10 @@
 {% extends "base.html" %}
 
+{% block rss -%}
+  {% set rss_path = "tags/" ~ term.name ~ "/" ~ config.feed_filename %}
+  <link rel="alternate" type={% if config.feed_filename == "atom.xml" %}"application/atom+xml"{% else %}"application/rss+xml"{% endif %} title="{{ config.title }}" href="{{ get_url(path=rss_path) | safe }}">
+{%- endblock -%}
+
 {% block main %}
   <main>
     {%- if taxonomy.term %}