diff --git a/config.toml b/config.toml index a9188a2befb1c249c54cb42311a7969819ce5a02..8e32d6f036209bfe025c8f10f1b139e905432e88 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 95be745e50e714a494b5600ea4d6bb3957b3b02c..ace4641ca1cd6e51ef96fef0c69121ae52fb2fb1 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 9c120748636a0e804aac93d2e02fa2cedfd0843f..5333994bc7e8df1012b44b518adc37b0ad2ba0a9 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">