diff options
| author | Jieiku | 2024-06-24 22:04:40 -0700 |
|---|---|---|
| committer | Jieiku | 2024-06-24 22:04:40 -0700 |
| commit | 7ca3ed028dd5169a72f5711246db8484871956b3 (patch) | |
| tree | 5d9b2e5228249fca77e330fc9bc160bc22573cf5 /templates/partials | |
| parent | addaaf1d2af796d6f2fc884a5303dc2b25bce9bd (diff) | |
| download | abridge-7ca3ed028dd5169a72f5711246db8484871956b3.tar.gz abridge-7ca3ed028dd5169a72f5711246db8484871956b3.tar.bz2 abridge-7ca3ed028dd5169a72f5711246db8484871956b3.zip | |
Update for Zola 0.19.1
Diffstat (limited to 'templates/partials')
| -rw-r--r-- | templates/partials/head.html | 14 | ||||
| -rw-r--r-- | templates/partials/social.html | 13 |
2 files changed, 23 insertions, 4 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 %} diff --git a/templates/partials/social.html b/templates/partials/social.html index 1652a55..cf5d058 100644 --- a/templates/partials/social.html +++ b/templates/partials/social.html @@ -1,7 +1,16 @@ {#- Social Footer Icons #} <nav><div> - {%- if config.generate_feed and config.extra.feed -%} - <a type="{% if config.feed_filename is containing('atom') %}application/atom+xml{% else %}application/rss+xml{% endif %}" href="{{ get_url(path=config.feed_filename, trailing_slash=false, lang=lang) | safe }}" target="_blank" title="{{ config.title }} Atom/RSS Feed"><i type="Button" class="svg rss" title="{{ config.title }} Atom/RSS Feed"></i></a>{% endif -%} + {%- if config.generate_feeds and config.extra.feed -%} + {%- for feed in config.feed_filenames -%} + + {%- if feed is containing('atom') -%} + <a type="application/atom+xml" href="{{ get_url(path=feed, trailing_slash=false, lang=lang) | safe }}" target="_blank" title="{{ config.title }} Atom Feed"><i type="Button" class="svg rss" title="{{ config.title }} Atom Feed"></i></a>{% endif -%} + {%- if feed is containing('rss') -%} + <a type="application/rss+xml" href="{{ get_url(path=feed, trailing_slash=false, lang=lang) | safe }}" target="_blank" title="{{ config.title }} RSS Feed"><i type="Button" class="svg rss" title="{{ config.title }} RSS Feed"></i></a>{% endif -%} + + {%- endfor -%} + {%- endif -%} + {%- if config.extra.mail -%} {%- if config.extra.mail_encode | default(value=true) -%} {%- set base64_email = config.extra.mail -%} |
