File tree Expand file tree Collapse file tree 4 files changed +6
-8
lines changed Expand file tree Collapse file tree 4 files changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -14,8 +14,8 @@ compile_sass = false
1414# Whether to build a search index to be used later on by a JavaScript library
1515build_search_index = false
1616
17- # When set to "true", a feed is automatically generated .
18- generate_feeds = true
17+ # We don't want to generate a site wide feed, but only one for the devlog .
18+ generate_feeds = false
1919
2020# The filename to use for the feed. Used as the template filename, too.
2121# Defaults to "atom.xml", which has a built-in template that renders an Atom 1.0 feed.
Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ description = "Recurring posts on godot-rust development"
99template = " devlog.html"
1010page_template = " devlog-page.html"
1111sort_by = " date"
12+ generate_feeds = true
1213# Pagination should probably be implemented at some point, for now "disable" it
1314paginate_by = 1000
1415+++
Original file line number Diff line number Diff line change 77
88{% extends "layout.html" %}
99
10- {% block page_head %}
11- < link rel ="alternate " type ="application/rss+xml " title ="RSS " href ="/atom.xml ">
12- {% endblock %}
1310
1411{% block content %}
1512< div class ="flex items-center flex-col mt-10 ">
Original file line number Diff line number Diff line change 9191 < meta name ="twitter:description " content ="{{ c_page_summary }} ">
9292 < meta name ="twitter:image " content ="{{ c_page_image | safe }} ">
9393
94- {% block page_head %}
95- {% endblock%}
96-
94+ {% if section and section.generate_feeds %}
95+ < link rel =" alternate " type =" application/rss+xml " title =" RSS " href =" {{ current_path | safe }}atom.xml " >
96+ {% endif %}
9797 </ head >
9898 < body class ="body-background dark:body-background flex flex-col h-screen justify-between ">
9999 <!---------------------------------------------------------->
You can’t perform that action at this time.
0 commit comments