all repos — homestead @ 04afe8fd9453626bbf276ed4c26da7c5007f0e56

Code for my website

Add link to RSS feeds for each tag

Alan Pearce
commit

04afe8fd9453626bbf276ed4c26da7c5007f0e56

parent

e1766ba9a681e3a3a3f945787b248f6405c553ed

1 file changed, 5 insertions(+), 0 deletions(-)

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