diff options
| author | welpo | 2023-06-05 23:57:29 +0200 |
|---|---|---|
| committer | welpo | 2023-06-05 23:57:29 +0200 |
| commit | ce59fae874f6f4ec1681c8c495a9a28955b5d45d (patch) | |
| tree | 4f8f70c9bb039a9c150538b9e0a4b41785ea37d6 /templates | |
| parent | 4cc9edc9ece7b855692d65fad29d3823036f5637 (diff) | |
| download | abridge-ce59fae874f6f4ec1681c8c495a9a28955b5d45d.tar.gz abridge-ce59fae874f6f4ec1681c8c495a9a28955b5d45d.tar.bz2 abridge-ce59fae874f6f4ec1681c8c495a9a28955b5d45d.zip | |
fix: link to the proper language feed
refactor: unifies the two "ifs" checking generate_feed and extra.feed
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/macros/social.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/macros/social.html b/templates/macros/social.html index 2a0835c..2b8f841 100644 --- a/templates/macros/social.html +++ b/templates/macros/social.html @@ -1,7 +1,7 @@ {%- macro social_links(config) %} <nav> - {%- if config.generate_feed -%}{%- if config.extra.feed -%} - <a href="{{ get_url(path=config.feed_filename, trailing_slash=false) | safe }}" target="_blank" title="Atom/RSS Feed"><i type="Button" class="svg rss" title="Atom/RSS Feed"></i></a>{% endif -%}{% endif -%} + {%- if config.generate_feed and config.extra.feed -%} + <a href="{{ get_url(path=config.feed_filename, trailing_slash=false, lang=lang) | safe }}" target="_blank" title="Atom/RSS Feed"><i type="Button" class="svg rss" title="Atom/RSS Feed"></i></a>{% endif -%} {%- if config.extra.mail -%} {%- if config.extra.mail_encode | default(value=true) -%} {%- set base64_email = config.extra.mail -%} |
