all repos — homestead @ 48bd362ccd486838ce903523326d73bd34529795

Code for my website

Render RSS autodiscovery links for main and per-tag feeds

Alan Pearce
commit

48bd362ccd486838ce903523326d73bd34529795

parent

be14399ce22926435bae2efa5f023956687c3a52

1 file changed, 3 insertions(+), 2 deletions(-)

jump to
M themes/bear/templates/taxonomy_single.htmlthemes/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 %}