aboutsummaryrefslogtreecommitdiff
path: root/templates/macros/social.html
diff options
context:
space:
mode:
authorJieiku2022-08-23 13:41:41 -0700
committerJieiku2022-08-23 13:41:41 -0700
commitc7b914505b6505b013610cc71e3b50d68c4a5473 (patch)
treed2abebfa75cedd1b7351b51f9d5c909834e8d05d /templates/macros/social.html
parent6e6c0cbbb5d6136788d35ee5a354d36079c3475a (diff)
downloadabridge-c7b914505b6505b013610cc71e3b50d68c4a5473.tar.gz
abridge-c7b914505b6505b013610cc71e3b50d68c4a5473.tar.bz2
abridge-c7b914505b6505b013610cc71e3b50d68c4a5473.zip
Optimizations, Update Readme YellowLabTools
Diffstat (limited to 'templates/macros/social.html')
-rw-r--r--templates/macros/social.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/templates/macros/social.html b/templates/macros/social.html
index 0c704bf..52fb6ff 100644
--- a/templates/macros/social.html
+++ b/templates/macros/social.html
@@ -1,4 +1,4 @@
-{%- macro social_links(social_config) %}
+{%- macro social_links(social_config, config) %}
<nav>
<ul>
{%- set base_url = get_url(path="", lang=lang) -%}
@@ -6,8 +6,8 @@
<li><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></li>{% endif -%}{% endif -%}
{%- if social_config.mail -%}
{%- if social_config.mail_encode -%}
- {%- set base64_email = "abridge" ~ social_config.mail -%}
- <li class="js"><a class="m-protected" href="#" target="_blank" title="{{ base64_email | base64_encode }}"><i type="Button" class="svg mail" title="Mail"></i></a></li>
+ {%- set base64_email = social_config.mail -%}
+ <li class="js"><a class="m-protected" href="#{{ base64_email | base64_encode }}" target="_blank" title="Mail"><i type="Button" class="svg mail" title="Mail"></i></a></li>
{%- else -%}
<li><a href="mailto:{{ social_config.mail }}" target="_blank" title="Mail"><i type="Button" class="svg mail" title="Mail"></i></a></li>
{%- endif -%}