Skip to content

Commit 2b83b51

Browse files
nunocoracaoclaude
andcommitted
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>
1 parent cc5cd8f commit 2b83b51

1 file changed

Lines changed: 2 additions & 7 deletions

File tree

layouts/partials/sharing-links.html

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,10 @@
33
<section class="flex flex-row flex-wrap justify-center pt-4 text-xl">
44
{{ range . }}
55
{{ with index $links . }}
6-
{{ $isEmail := eq .icon "email" }}
76
<a
8-
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"
7+
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"
98
target="_blank"
10-
href="{{ cond $isEmail "#" (printf .url $.Permalink $.Title | safeURL) }}"
11-
{{ if $isEmail }}
12-
data-email="{{ $.Site.Params.Author.email | base64Encode }}"
13-
data-subject="{{ replace (printf "Reply to %s" $.Title) "\"" "'" }}"
14-
{{ end }}
9+
href="{{ printf .url $.Permalink $.Title | safeURL }}"
1510
title="{{ i18n .title }}"
1611
aria-label="{{ i18n .title }}">
1712
{{ partial "icon.html" .icon }}

0 commit comments

Comments
 (0)