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:
@@ -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 %}
|
||||
|
||||
Reference in New Issue
Block a user