Add span to email shortcode
This commit is contained in:
@@ -1002,6 +1002,8 @@ Shortcode classes:
|
|||||||
<dl>
|
<dl>
|
||||||
<dt><code>.paige-code</code></dt>
|
<dt><code>.paige-code</code></dt>
|
||||||
<dd>The container element of <code>paige/code</code> shortcodes.</dd>
|
<dd>The container element of <code>paige/code</code> shortcodes.</dd>
|
||||||
|
<dt><code>.paige-email</code></dt>
|
||||||
|
<dd>The container element of <code>paige/email</code> shortcodes.</dd>
|
||||||
<dt><code>.paige-figure</code></dt>
|
<dt><code>.paige-figure</code></dt>
|
||||||
<dd>The container element of <code>paige/figure</code> shortcodes.</dd>
|
<dd>The container element of <code>paige/figure</code> shortcodes.</dd>
|
||||||
<dt><code>.paige-gallery</code></dt>
|
<dt><code>.paige-gallery</code></dt>
|
||||||
|
@@ -9,4 +9,4 @@
|
|||||||
{{ errorf "layouts/shortcodes/paige/email.html: no content" }}
|
{{ errorf "layouts/shortcodes/paige/email.html: no content" }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
<a href="#" data-a="{{ base64Encode (index (split $address `@`) 0) }}" data-b="{{ base64Encode `@` }}" data-c="{{ base64Encode (index (split $address `@`) 1) }}" onclick="this.href = 'mailto:' + atob(this.dataset.a) + atob(this.dataset.b) + atob(this.dataset.c)">{{ $content }}</a>
|
<span class="paige-email"><a href="#" data-a="{{ base64Encode (index (split $address `@`) 0) }}" data-b="{{ base64Encode `@` }}" data-c="{{ base64Encode (index (split $address `@`) 1) }}" onclick="this.href = 'mailto:' + atob(this.dataset.a) + atob(this.dataset.b) + atob(this.dataset.c)">{{ $content }}</a></span>
|
||||||
|
Reference in New Issue
Block a user