From ae3909f2d495e44766265ff5d1d1e3d8f8dbf3df Mon Sep 17 00:00:00 2001 From: Edgar Luque Date: Tue, 27 Jun 2023 11:57:32 +0200 Subject: [PATCH] taxonomy rss --- templates/base.html | 5 +++-- templates/index.html | 2 ++ templates/taxonomy_single.html | 13 ++++++++++++- 3 files changed, 17 insertions(+), 3 deletions(-) diff --git a/templates/base.html b/templates/base.html index fd660aa..4a71ee0 100644 --- a/templates/base.html +++ b/templates/base.html @@ -19,7 +19,9 @@ - + {% block rss %} + + {% endblock %} @@ -42,7 +44,6 @@ >GitHub -
  • RSS
  • diff --git a/templates/index.html b/templates/index.html index 3c11238..cb81517 100644 --- a/templates/index.html +++ b/templates/index.html @@ -16,4 +16,6 @@ {% endfor %} +

    RSS Feed

    + {% endblock content %} diff --git a/templates/taxonomy_single.html b/templates/taxonomy_single.html index 86e21d9..b596333 100644 --- a/templates/taxonomy_single.html +++ b/templates/taxonomy_single.html @@ -1,4 +1,13 @@ -{% extends "base.html" %} {% block content %} +{% extends "base.html" %} + +{% set rss_path = term.path ~ "atom.xml" %} + +{% block rss %} + {% set rss_path = term.path ~ "atom.xml" %} + +{% endblock rss %} + +{% block content %}

    {{ term.name }} articles

    @@ -13,4 +22,6 @@ {% endfor %} +

    RSS Feed

    + {% endblock content %}