Skip to content

Commit

Permalink
Remove atom.xml template, use Zola internal one. Enable feed generation.
Browse files Browse the repository at this point in the history
  • Loading branch information
mayo committed Jun 4, 2024
1 parent 67382b4 commit 4e30ffc
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 46 deletions.
2 changes: 1 addition & 1 deletion config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ compile_sass = true
build_search_index = true

# Feed
generate_feed = false
generate_feed = true
feed_filename = "atom.xml" # or rss.xml, also used for loading template
feed_limit = 20

Expand Down
43 changes: 0 additions & 43 deletions templates/atom.xml

This file was deleted.

7 changes: 5 additions & 2 deletions templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,11 @@
<!-- <link rel="stylesheet" href="/media/css/handheld.css" media="only screen"/> -->
{% endblock %}


<link rel="alternate" type="application/atom+xml" href="/feed/atom.xml"/>
{% block rss %}
{% if config.generate_feed %}
<link rel="alternate" type="application/atom+xml" title="RSS" href="{{ get_url(path="/atom.xml") | safe }}">
{% endif %}
{% endblock rss %}

{% for link, _ in config.extra.rel_me -%}
<link rel="me" href="{{ config.extra.links[link] | safe }}"/>
Expand Down

0 comments on commit 4e30ffc

Please sign in to comment.