diff options
author | Alan Pearce | 2023-06-23 09:06:51 +0200 |
---|---|---|
committer | Alan Pearce | 2023-06-23 14:04:53 +0200 |
commit | 8d075e8abfb668622537979a3fcc8487a36a7d85 (patch) | |
tree | 7f0ccfbe7fb76d443a32fd903154470dd5ecd943 /themes/bear/templates | |
parent | 181ab0399d23a8edb732610d8e545ed227136908 (diff) | |
download | website-8d075e8abfb668622537979a3fcc8487a36a7d85.tar.lz website-8d075e8abfb668622537979a3fcc8487a36a7d85.tar.zst website-8d075e8abfb668622537979a3fcc8487a36a7d85.zip |
Render RSS autodiscovery links for main and per-tag feeds
Diffstat (limited to 'themes/bear/templates')
-rw-r--r-- | themes/bear/templates/taxonomy_single.html | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/themes/bear/templates/taxonomy_single.html b/themes/bear/templates/taxonomy_single.html index 95962a4..874e4d2 100644 --- a/themes/bear/templates/taxonomy_single.html +++ b/themes/bear/templates/taxonomy_single.html @@ -1,8 +1,9 @@ {% 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 }}"> + <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=config.feed_filename) | safe }}"> + {%- 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="{% if term %}{{ term.name | title }}{% else %}{{ section.title | title }}{% endif %}" href="{{ get_url(path=rss_path) | safe }}"> {%- endblock -%} {% block main %} |