Add a little obfuscation to combat email scrapers
All checks were successful
Deploy website / deploy (push) Successful in 13s

This commit is contained in:
luaneko 2024-12-04 16:07:03 +11:00
parent 12947e0241
commit b148c28fa2
Signed by: luaneko
GPG Key ID: 406809B8763FF07A

View File

@ -19,7 +19,7 @@ services.sort(([_a, a], [_b, b]) => a.length - b.length || a.localeCompare(b));
class="max-w-prose mx-auto p-4 sm:p-8 leading-tight">{ class="max-w-prose mx-auto p-4 sm:p-8 leading-tight">{
` ∧.,,∧ 𝜗𝜚 ` ∧.,,∧ 𝜗𝜚
( ̳• · • ̳) ᭢ ( ̳• · • ̳) ᭢
/ づ `}<a href="mailto:lumi@lua.re" class="font-serif"><em><strong>lumi</strong>@lua.re</em></a> ₊˚.⋆⁺₊ / づ `}<a class="mail" class="font-serif"><em><strong>lumi</strong><span class="at"> at </span>lua.re</em></a> ₊˚.⋆⁺₊
{socials.map(([name, text, href]) => ( {socials.map(([name, text, href]) => (
<>・:。<small><a href={href} title={name}>{text}</a></small> <>・:。<small><a href={href} title={name}>{text}</a></small>
@ -30,3 +30,13 @@ services.sort(([_a, a], [_b, b]) => a.length - b.length || a.localeCompare(b));
🍡 🌸 🎀 🌙</pre> 🍡 🌸 🎀 🌙</pre>
</Layout> </Layout>
<script>
// don't scrape my email please
const node = document.querySelector(`.mail`);
if (node) {
node.querySelector(`.at`)?.replaceWith("@");
node.setAttribute("href", `mailto:${node.textContent}`);
}
</script>