~craftyguy/blog.craftyguy.net

e133ac734a2620c18a3baf10a5e192e828bab4c3 — Clayton Craft 8 months ago 0c48454
Add atom feed
2 files changed, 10 insertions(+), 0 deletions(-)

M config.toml
A templates/index.html
M config.toml => config.toml +4 -0
@@ 13,6 13,9 @@ taxonomies = [
        {name = "tags"},
]

generate_feed = true
feed_filename = "atom.xml"

[markdown]
# Whether to do syntax highlighting
# Theme can be customised by setting the `highlight_theme` variable to a theme supported by Zola


@@ 42,4 45,5 @@ menu_items = [
        {name = "tags", url = "$BASE_URL/tags"},
        {name = "archive", url = "$BASE_URL/archive"},
        {name = "about me", url = "$BASE_URL/about"},
        {name = "feed", url = "$BASE_URL/atom.xml"},
]

A templates/index.html => templates/index.html +6 -0
@@ 0,0 1,6 @@
{% extends "terminimal/templates/index.html" %}
{% block extra_head %}
{% block rss %}
  <link rel="alternate" type="application/atom+xml" title="Atom" href="{{ get_url(path="atom.xml", trailing_slash=false) }}">
{% endblock %}
{% endblock %}