1
0
mirror of https://github.com/cotes2020/jekyll-theme-chirpy.git synced 2026-04-11 04:32:23 +00:00

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

This commit is contained in:
lynkos
2026-04-09 12:29:33 -04:00
committed by GitHub
parent 6245dec754
commit 2685b91957

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 %}