mirror of
https://github.com/svemagie/blog-eleventy-indiekit.git
synced 2026-05-15 06:58:50 +02:00
fix: add safe filter to prevent entity escaping
This commit is contained in:
@@ -58,7 +58,7 @@
|
|||||||
{% if site.author.email %}
|
{% if site.author.email %}
|
||||||
{# Display text obfuscated to deter spam harvesters; href kept plain for browser compatibility #}
|
{# Display text obfuscated to deter spam harvesters; href kept plain for browser compatibility #}
|
||||||
<a href="mailto:{{ site.author.email }}" class="u-email text-primary-600 dark:text-primary-400 hover:underline" itemprop="email">
|
<a href="mailto:{{ site.author.email }}" class="u-email text-primary-600 dark:text-primary-400 hover:underline" itemprop="email">
|
||||||
✉️ {{ site.author.email | obfuscateEmail }}
|
✉️ {{ site.author.email | obfuscateEmail | safe }}
|
||||||
</a>
|
</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if site.author.keyUrl %}
|
{% if site.author.keyUrl %}
|
||||||
|
|||||||
Reference in New Issue
Block a user