mirror of
https://github.com/cotes2020/jekyll-theme-chirpy.git
synced 2026-04-11 12:42:22 +00:00
fix: prevent Firefox from opening blank page on mailto links (#2642)
This commit is contained in:
@@ -68,7 +68,7 @@
|
|||||||
{%- endunless -%}
|
{%- endunless -%}
|
||||||
{%- assign email = site.social.email | split: '@' -%}
|
{%- assign email = site.social.email | split: '@' -%}
|
||||||
{%- capture url -%}
|
{%- capture url -%}
|
||||||
javascript:location.href = 'mailto:' + ['{{ email[0] }}','{{ email[1] }}'].join('@')
|
javascript:void(location.href = 'mailto:' + ['{{ email[0] }}','{{ email[1] }}'].join('@'))
|
||||||
{%- endcapture -%}
|
{%- endcapture -%}
|
||||||
{% when 'rss' %}
|
{% when 'rss' %}
|
||||||
{% assign url = '/feed.xml' | relative_url %}
|
{% assign url = '/feed.xml' | relative_url %}
|
||||||
|
|||||||
Reference in New Issue
Block a user