From 72ed630089e1aaa7d8ed88fd3b4d03d55af52326 Mon Sep 17 00:00:00 2001 From: Jieiku Date: Thu, 21 Jul 2022 13:18:15 -0700 Subject: email obfuscation --- templates/macros/head.html | 28 ++++++++++++++++++++-------- templates/macros/social.html | 8 +++++++- 2 files changed, 27 insertions(+), 9 deletions(-) (limited to 'templates/macros') diff --git a/templates/macros/head.html b/templates/macros/head.html index b942f3e..8ebceb5 100644 --- a/templates/macros/head.html +++ b/templates/macros/head.html @@ -88,18 +88,24 @@ {%- if config.extra.js_prestyle %} {%- endif %} - {%- endif %} - {%- if config.extra.js_codecopy %} - {%- endif %} - {%- if config.extra.js_theme %} {%- if config.extra.js_themeButton %} {%- endif %} {%- endif %} + {%- if config.extra.js_email %} + {%- if config.extra.social.mail_encode %} + + {%- endif %} + {%- endif %} + + {%- if config.extra.js_codecopy %} + + {%- endif %} + {%- if config.extra.js_search_index %} {%- endif %} @@ -123,16 +129,22 @@ {%- endif %} {%- endif %} - {%- if config.extra.js_codecopy %} - - {%- endif %} - {%- if config.extra.js_theme %} {%- if config.extra.js_themeButton or config.extra.js_bundle %} {%- endif %} {%- endif %} + {%- if config.extra.js_email %} + {%- if config.extra.social.mail_encode %} + + {%- endif %} + {%- endif %} + + {%- if config.extra.js_codecopy %} + + {%- endif %} + {%- endif %} 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 -%}
  • {% endif -%}{% endif -%} {%- if social_config.mail -%} -
  • {% endif -%} + {%- if social_config.mail_encode -%} + {%- set base64_email = "abridge" ~ social_config.mail -%} +
  • + {%- else -%} +
  • + {%- endif -%} + {% endif -%} {%- if social_config.mastodon -%}
  • {% endif -%} {%- if social_config.element -%} -- cgit v1.3.1