diff options
Diffstat (limited to 'templates/macros/social.html')
| -rw-r--r-- | templates/macros/social.html | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/templates/macros/social.html b/templates/macros/social.html index e2786ef..0c704bf 100644 --- a/templates/macros/social.html +++ b/templates/macros/social.html @@ -5,7 +5,13 @@ {%- if config.generate_feed -%}{%- if config.extra.social.feed -%} <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 -%} - <li><a href="mailto:{{ social_config.mail }}" target="_blank" title="Mail"><i type="Button" class="svg mail" title="Mail"></i></a></li>{% endif -%} + {%- 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> + {%- else -%} + <li><a href="mailto:{{ social_config.mail }}" target="_blank" title="Mail"><i type="Button" class="svg mail" title="Mail"></i></a></li> + {%- endif -%} + {% endif -%} {%- if social_config.mastodon -%} <li><a href="{{ social_config.mastodon }}/" target="_blank" title="Mastodon"><i type="Button" class="svg mastodon" title="Mastodon"></i></a></li>{% endif -%} {%- if social_config.element -%} |
