Skip to content

Commit 2fe32b6

Browse files
committed
Make Devlog available to feed readers
1 parent 5b05f93 commit 2fe32b6

File tree

4 files changed

+19
-0
lines changed

4 files changed

+19
-0
lines changed

website/config.toml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,14 @@ compile_sass = false
1414
# Whether to build a search index to be used later on by a JavaScript library
1515
build_search_index = false
1616

17+
# When set to "true", a feed is automatically generated.
18+
generate_feeds = true
19+
20+
# The filename to use for the feed. Used as the template filename, too.
21+
# Defaults to "atom.xml", which has a built-in template that renders an Atom 1.0 feed.
22+
# There is also a built-in template "rss.xml" that renders an RSS 2.0 feed.
23+
feed_filenames = ["atom.xml"]
24+
1725
#taxonomies = [
1826
# {name = "tags", paginate_by = 5, feed = true},
1927
# {name = "categories", paginate_by = 5, feed = true},

website/templates/devlog-page.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@
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 %}
13+
1014
{% block content %}
1115
<div class="flex items-center flex-col mt-10">
1216
<div class="markdown-content">

website/templates/devlog.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@
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 %}
13+
1014
{% block content %}
1115
<div class="flex items-center flex-col mt-10">
1216
<!-- Content -->

website/templates/layout.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,9 @@
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+
9497
</head>
9598
<body class="body-background dark:body-background flex flex-col h-screen justify-between">
9699
<!---------------------------------------------------------->

0 commit comments

Comments
 (0)