From 6271a273e4761acac4b35838493a2cfa63d60330 Mon Sep 17 00:00:00 2001 From: Sylvain Boissel Date: Thu, 21 Nov 2024 17:44:25 +0100 Subject: [PATCH] Add Atom+RSS links at the bottom of the blog index page --- blog/templates/blog/blocks/feeds.html | 14 ++++++++++++++ blog/templates/blog/blog_index_page.html | 2 ++ 2 files changed, 16 insertions(+) create mode 100644 blog/templates/blog/blocks/feeds.html diff --git a/blog/templates/blog/blocks/feeds.html b/blog/templates/blog/blocks/feeds.html new file mode 100644 index 00000000..ce633975 --- /dev/null +++ b/blog/templates/blog/blocks/feeds.html @@ -0,0 +1,14 @@ +{% load wagtailroutablepage_tags %} + +
+ +
diff --git a/blog/templates/blog/blog_index_page.html b/blog/templates/blog/blog_index_page.html index 81f9e200..6170c9fe 100644 --- a/blog/templates/blog/blog_index_page.html +++ b/blog/templates/blog/blog_index_page.html @@ -153,6 +153,7 @@

{% translate "Filter by source" %}

{% if posts.paginator.num_pages > 1 %}
{% dsfr_pagination posts %}
{% endif %} + {% include "blog/blocks/feeds.html" %} {% else %} @@ -160,6 +161,7 @@

{% translate "Filter by source" %}

{% if posts.paginator.num_pages > 1 %}
{% dsfr_pagination posts %}
{% endif %} + {% include "blog/blocks/feeds.html" %} {% endif %} {% endblock content %}