summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Silas Bartha <[email protected]>2024-08-15 21:47:13 -0400
committerLibravatar Silas Bartha <[email protected]>2024-08-15 21:47:13 -0400
commit73332a62e385d380ea124a6a05e65b4bef78b3ae (patch)
tree907a60548290b11e335102ca46da9cf087a30f6a
parent6d2f00dfe6d3279d2239cf0135dcd017d1bae46b (diff)
Added RSS Feeds
-rw-r--r--config.toml5
-rw-r--r--templates/base.html3
2 files changed, 8 insertions, 0 deletions
diff --git a/config.toml b/config.toml
index f6740e7..597031c 100644
--- a/config.toml
+++ b/config.toml
@@ -7,6 +7,11 @@ compile_sass = true
# Whether to build a search index to be used later on by a JavaScript library
build_search_index = false
+generate_feeds = true
+feed_filenames = ["atom.xml", "rss.xml"]
+
+author = "Silas Bartha"
+
taxonomies = [
{ name = "categories", render = false },
{ name = "languages", render = false },
diff --git a/templates/base.html b/templates/base.html
index c74aceb..ba2a57e 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -4,6 +4,9 @@
<meta charset="utf-8"/>
<title>silas</title>
<link rel="stylesheet" href="/style.css"/>
+ {% block rss %}
+ <link rel="alternate" type="application/rss+xml" title="RSS" href="{{ get_url(path="rss.xml", trailing_slash=false) }}">
+ {% endblock %}
</head>
<body>
<section class="section">