Skip to content

Commit 88cdf24

Browse files
authored
Merge pull request #7 from TitanNano/jovan/atom_feed
Make Devlog available to feed readers
2 parents 61c5880 + 701b801 commit 88cdf24

File tree

6 files changed

+22
-4
lines changed

6 files changed

+22
-4
lines changed

.github/workflows/build-website.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ on:
1414

1515

1616
env:
17-
ZOLA_VERSION: 0.18.0
17+
ZOLA_VERSION: 0.19.2
1818

1919
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
2020
permissions:
@@ -32,7 +32,7 @@ jobs:
3232
uses: actions/checkout@v4
3333

3434
- name: "Build website"
35-
uses: shalzz/zola-deploy-action@master
35+
uses: shalzz/zola-deploy-action@v0.19.2
3636
env:
3737
BUILD_DIR: website
3838
TOKEN: fake-token

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/content/docs/_index.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
title = "API Docs"
88
description = "Latest documentation of the public API"
9-
date = 2000-01-01
109
template = "docs.html"
1110
page_template = "page.html"
1211
sort_by = "date"
@@ -23,4 +22,4 @@ To check out released crates, check out [docs.rs/gdnative][gdnative].
2322
There are no releases for gdext yet.
2423

2524

26-
[gdnative]: https://docs.rs/gdnative
25+
[gdnative]: https://docs.rs/gdnative

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)