summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxAlpharax <42233094+xAlpharax@users.noreply.github.com>2023-11-12 23:46:10 +0200
committerxAlpharax <42233094+xAlpharax@users.noreply.github.com>2023-11-12 23:47:29 +0200
commitbf0404ca8f76c0009891c1816b49f9ce8374b416 (patch)
tree8738187df2b68b9c9661f678328c2986ef5e34df
parentf9b510161cf06962b16a051edc567ae6f33e52e2 (diff)
RSS implemented + autodiscovery and sitemaps
Changes to be committed: modified: config.toml modified: templates/base.html
-rw-r--r--config.toml3
-rw-r--r--templates/base.html3
2 files changed, 6 insertions, 0 deletions
diff --git a/config.toml b/config.toml
index 4bd71ea..848098e 100644
--- a/config.toml
+++ b/config.toml
@@ -7,6 +7,9 @@ compile_sass = true
# Whether to build a search index to be used later on by a JavaScript library
build_search_index = true
+# RSS feed generation
+generate_feed = true
+
[markdown]
# Whether to do syntax highlighting
# Theme can be customised by setting the `highlight_theme` variable to a theme supported by Zola
diff --git a/templates/base.html b/templates/base.html
index 59eaaae..a85bca1 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -4,6 +4,9 @@
<head>
<meta charset="utf-8">
<title>MyBlog</title>
+ {% block rss %}
+ <link rel="alternate" type="application/atom+xml" title="RSS" href="{{ get_url(path="atom.xml", trailing_slash=false) }}">
+ {% endblock %}
</head>
<body>