aboutsummaryrefslogtreecommitdiff
path: root/templates/macros/head.html
diff options
context:
space:
mode:
authorJieiku2022-05-31 02:37:04 -0700
committerJieiku2022-05-31 02:37:04 -0700
commitdd536476ec055027a0a72b4b0394d48eb8484a9a (patch)
treebfef5ee2c2b284e973f0f3f0c4109d36281e8cd0 /templates/macros/head.html
parent49f72d5d171e84b2f2c18825dac6128b81fbd348 (diff)
downloadabridge-dd536476ec055027a0a72b4b0394d48eb8484a9a.tar.gz
abridge-dd536476ec055027a0a72b4b0394d48eb8484a9a.tar.bz2
abridge-dd536476ec055027a0a72b4b0394d48eb8484a9a.zip
Determine Atom vs Rss Feed Type
Diffstat (limited to 'templates/macros/head.html')
-rw-r--r--templates/macros/head.html2
1 files changed, 1 insertions, 1 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 %}