From d3298cbe8f5cdec2fdfbe1a0929325fd22d36bd2 Mon Sep 17 00:00:00 2001
From: Hugo Trentesaux <hugo@trentesaux.fr>
Date: Tue, 28 Jul 2020 20:28:09 +0200
Subject: [PATCH] active rss

---
 config.toml            | 2 ++
 content/blog/_index.md | 2 +-
 templates/feed.html    | 4 ++++
 3 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/config.toml b/config.toml
index a9188a2..8e32d6f 100644
--- a/config.toml
+++ b/config.toml
@@ -3,6 +3,8 @@ compile_sass = true
 highlight_code = true
 build_search_index = true
 default_language = "fr"
+generate_feed = true
+feed_filename = "rss.xml"
 
 taxonomies = [
     {name = "authors"},
diff --git a/content/blog/_index.md b/content/blog/_index.md
index 95be745..ace4641 100644
--- a/content/blog/_index.md
+++ b/content/blog/_index.md
@@ -3,4 +3,4 @@ title = "Actualités"
 template = "feed.html"
 +++
 
-Vous trouverez ici les actualités relatives au projet Duniter. (trier par [Auteur](/authors), [Tag](/tags), [Catégorie](/category))
\ No newline at end of file
+Vous trouverez ici les actualités relatives au projet Duniter. (trier par [Auteur](/authors), [Tag](/tags), [Catégorie](/category)). Abonnez-vous au [<i class="fa fa-rss"></i> flux rss](/rss.xml).
\ No newline at end of file
diff --git a/templates/feed.html b/templates/feed.html
index 9c12074..5333994 100644
--- a/templates/feed.html
+++ b/templates/feed.html
@@ -1,5 +1,9 @@
 {% extends "index.html" %}
 
+{% block extrahead %}
+<link rel="alternate" type="application/rss+xml" title="S'abonner via RSS" href="/rss.xml" />
+{% endblock %}
+
 {% block content %}
   <main class="w3-container w3-margin-mobile">
     <div class="w3-margin">
-- 
GitLab