Skip to content

Commit

Permalink
Make Devlog available to feed readers
Browse files Browse the repository at this point in the history
  • Loading branch information
TitanNano committed Oct 15, 2024
1 parent 5b05f93 commit 2fe32b6
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 0 deletions.
8 changes: 8 additions & 0 deletions website/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,14 @@ compile_sass = false
# Whether to build a search index to be used later on by a JavaScript library
build_search_index = false

# When set to "true", a feed is automatically generated.
generate_feeds = true

# The filename to use for the feed. Used as the template filename, too.
# Defaults to "atom.xml", which has a built-in template that renders an Atom 1.0 feed.
# There is also a built-in template "rss.xml" that renders an RSS 2.0 feed.
feed_filenames = ["atom.xml"]

#taxonomies = [
# {name = "tags", paginate_by = 5, feed = true},
# {name = "categories", paginate_by = 5, feed = true},
Expand Down
4 changes: 4 additions & 0 deletions website/templates/devlog-page.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@

{% extends "layout.html" %}

{% block page_head %}
<link rel="alternate" type="application/rss+xml" title="RSS" href="/atom.xml">
{% endblock %}

{% block content %}
<div class="flex items-center flex-col mt-10">
<div class="markdown-content">
Expand Down
4 changes: 4 additions & 0 deletions website/templates/devlog.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@

{% extends "layout.html" %}

{% block page_head %}
<link rel="alternate" type="application/rss+xml" title="RSS" href="/atom.xml">
{% endblock %}

{% block content %}
<div class="flex items-center flex-col mt-10">
<!-- Content -->
Expand Down
3 changes: 3 additions & 0 deletions website/templates/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,9 @@
<meta name="twitter:description" content="{{ c_page_summary }}">
<meta name="twitter:image" content="{{ c_page_image | safe }}">

{% block page_head %}
{% endblock%}

</head>
<body class="body-background dark:body-background flex flex-col h-screen justify-between">
<!---------------------------------------------------------->
Expand Down

0 comments on commit 2fe32b6

Please sign in to comment.