Add link to RSS feeds for each tag
Alan Pearce alan@alanpearce.eu
Tue, 20 Jun 2023 13:04:55 +0200
1 files changed, 5 insertions(+), 0 deletions(-)
M themes/bear/templates/taxonomy_single.html → 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 %}