aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/macros/head.html2
-rw-r--r--templates/macros/social.html2
2 files changed, 2 insertions, 2 deletions
diff --git a/templates/macros/head.html b/templates/macros/head.html
index 402d99e..9e4d59f 100644
--- a/templates/macros/head.html
+++ b/templates/macros/head.html
@@ -26,7 +26,7 @@
{%- endif %}
{%- if config.generate_feed %}
- <link rel="alternate" type="application/rss+xml" title="RSS" href="{{ get_url(path=config.extra.rss_atom_feed, trailing_slash=false) }}">
+ <link rel="alternate" type="{% if config.feed_filename is containing('atom') %}application/atom+xml{% else %}application/rss+xml{% endif %}" title="Atom/RSS Feed" href="{{ get_url(path=config.feed_filename, trailing_slash=false) | safe }}">
{%- endif %}
{%- endmacro %}
diff --git a/templates/macros/social.html b/templates/macros/social.html
index 37c66af..d34fb29 100644
--- a/templates/macros/social.html
+++ b/templates/macros/social.html
@@ -2,7 +2,7 @@
{%- set base_url = get_url(path="", lang=lang) %}
<span>
{%- if config.generate_feed %}{%- if config.extra.social.feed %}
- <a href="{{ get_url(path="atom.xml") }}" target="_blank"><span class="svg rss" title="Rss"></span></a>{% endif %}{% endif %}
+ <a href="{{ get_url(path=config.feed_filename, trailing_slash=false) | safe }}" target="_blank"><span class="svg rss" title="Atom/RSS Feed"></span></a>{% endif %}{% endif %}
{%- if social_config.mail %}
<a href="mailto:{{ social_config.mail }}" target="_blank"><span class="svg mail" title="Mail"></span></a>{% endif %}
{%- if social_config.mastodon %}