chore: use generate_feeds for atom and change feed_filename to feed_filenames

This commit is contained in:
thunderbottom 2024-08-12 19:39:25 +05:30
parent c86acb71e0
commit e7f7d2bd7c

View File

@ -27,7 +27,7 @@
{% else %} {% else %}
<link href="/404.html" rel="canonical"> <link href="/404.html" rel="canonical">
{% endif %} {% endif %}
<link rel="alternate" type="application/atom+xml" title="RSS" href="{{ get_url(path=config.feed_filename) | safe }}"> {% if config.generate_feeds %}{% for feed in config.feed_filenames %}<link rel="alternate" type={% if feed == "atom.xml" %}"application/atom+xml"{% else %}"application/rss+xml"{% endif %} title="RSS" href="{{ get_url(path=feed) | safe }}">{% endfor %}{% endif %}
{% endblock meta %} {% endblock meta %}
{% block og_card %} {% block og_card %}