Skip to content

Commit

Permalink
fix zola v0.19 rss feed config
Browse files Browse the repository at this point in the history
  • Loading branch information
sirodoht committed Dec 5, 2024
1 parent d2650b5 commit f158d23
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion export_base_zola/404.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ <h2>Page Not Found</h2>
<p><a href="#" onclick="history.back();">← Go back</a> or return to the <a href="/">homepage</a>.</p>
</main>
<footer>
Subscribe via <a href="/{{ config.feed_filename }}">RSS</a>.
Subscribe via <a href="/rss.xml">RSS</a>.
</footer>
{% endblock content %}
5 changes: 2 additions & 3 deletions export_base_zola/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,8 @@ description = "Example blog description"
# Whether to automatically compile all Sass files in the sass directory
compile_sass = false

generate_feed = true
feed_filename = "rss.xml"
feed_limit = 20
generate_feeds = true
feed_filenames = ["rss.xml"]

# Whether to do syntax highlighting
# Theme can be customised by setting the `highlight_theme` variable to a theme supported by Zola
Expand Down
2 changes: 1 addition & 1 deletion export_base_zola/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ <h1>{{ config.title }}</h1>
</main>

<footer>
Subscribe via <a href="/{{ config.feed_filename }}">RSS</a>.
Subscribe via <a href="/rss.xml">RSS</a>.
</footer>
{% endblock content %}

Expand Down
2 changes: 1 addition & 1 deletion export_base_zola/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ <h1 class="posts-item-title" itemprop="name headline">
</article>
</main>
<footer>
Subscribe via <a href="/{{ config.feed_filename }}">RSS</a>.
Subscribe via <a href="/rss.xml">RSS</a>.
</footer>
{% endblock content %}

0 comments on commit f158d23

Please sign in to comment.