diff options
Diffstat (limited to 'templates/partials/head.html')
| -rw-r--r-- | templates/partials/head.html | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/templates/partials/head.html b/templates/partials/head.html index 4e6b713..b96531c 100644 --- a/templates/partials/head.html +++ b/templates/partials/head.html @@ -120,10 +120,20 @@ {#- Rss / Atom Feed #} - {%- if config.generate_feed %} - <link rel="alternate" type="{% if config.feed_filename is containing('atom') %}application/atom+xml{% else %}application/rss+xml{% endif %}" title="{{ config.title }} Atom/RSS Feed" href="{{ get_url(path=config.feed_filename, trailing_slash=false, lang=lang) | safe }}" /> + + {%- if config.generate_feeds %} + {%- for feed in config.feed_filenames %} + + {%- if feed is containing('atom') %} + <link rel="alternate" type="application/atom+xml" title="{{ config.title }} Atom Feed" href="{{ get_url(path=feed, trailing_slash=false, lang=lang) | safe }}" /> {%- endif %} + {%- if feed is containing('rss') %} + <link rel="alternate" type="application/rss+xml" title="{{ config.title }} RSS Feed" href="{{ get_url(path=feed, trailing_slash=false, lang=lang) | safe }}" /> + {%- endif %} + + {%- endfor %} + {%- endif %} |
