fix: prevent Firefox from opening blank page on mailto links (#2642)

This commit is contained in:
lynkos
2026-04-10 00:29:33 +08:00
committed by GitHub
parent 6245dec754
commit 2685b91957
+1 -1
View File
@@ -68,7 +68,7 @@
{%- endunless -%}
{%- assign email = site.social.email | split: '@' -%}
{%- capture url -%}
javascript:location.href = 'mailto:' + ['{{ email[0] }}','{{ email[1] }}'].join('@')
javascript:void(location.href = 'mailto:' + ['{{ email[0] }}','{{ email[1] }}'].join('@'))
{%- endcapture -%}
{% when 'rss' %}
{% assign url = '/feed.xml' | relative_url %}