mirror of
https://github.com/nunocoracao/blowfish.git
synced 2026-11-09 20:49:20 +00:00
Fix sharing email link broken by email obfuscation PR
The email obfuscation PR (#2815) incorrectly replaced the "share via email" link with the author's email as recipient. Sharing links have no email address to obfuscate — they just open a mailto: with the article URL and title prefilled. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
cc5cd8f11a
commit
2b83b517cc
1 file changed
+2
-7
@@ -3,15 +3,10 @@
|
|||||||
<section class="flex flex-row flex-wrap justify-center pt-4 text-xl">
|
<section class="flex flex-row flex-wrap justify-center pt-4 text-xl">
|
||||||
{{ range . }}
|
{{ range . }}
|
||||||
{{ with index $links . }}
|
{{ with index $links . }}
|
||||||
{{ $isEmail := eq .icon "email" }}
|
|
||||||
<a
|
<a
|
||||||
class="{{ cond $isEmail "email-link" "" }} m-1 rounded bg-neutral-300 p-1.5 text-neutral-700 hover:bg-primary-500 hover:text-neutral dark:bg-neutral-700 dark:text-neutral-300 dark:hover:bg-primary-400 dark:hover:text-neutral-800"
|
class="m-1 rounded bg-neutral-300 p-1.5 text-neutral-700 hover:bg-primary-500 hover:text-neutral dark:bg-neutral-700 dark:text-neutral-300 dark:hover:bg-primary-400 dark:hover:text-neutral-800"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
href="{{ cond $isEmail "#" (printf .url $.Permalink $.Title | safeURL) }}"
|
href="{{ printf .url $.Permalink $.Title | safeURL }}"
|
||||||
{{ if $isEmail }}
|
|
||||||
data-email="{{ $.Site.Params.Author.email | base64Encode }}"
|
|
||||||
data-subject="{{ replace (printf "Reply to %s" $.Title) "\"" "'" }}"
|
|
||||||
{{ end }}
|
|
||||||
title="{{ i18n .title }}"
|
title="{{ i18n .title }}"
|
||||||
aria-label="{{ i18n .title }}">
|
aria-label="{{ i18n .title }}">
|
||||||
{{ partial "icon.html" .icon }}
|
{{ partial "icon.html" .icon }}
|
||||||
|
|||||||
Reference in new issue
Block a user