Add a little obfuscation to combat email scrapers
All checks were successful
Deploy website / deploy (push) Successful in 13s
All checks were successful
Deploy website / deploy (push) Successful in 13s
This commit is contained in:
parent
12947e0241
commit
b148c28fa2
@ -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">{
|
||||
` ∧.,,∧ 𝜗𝜚
|
||||
( ̳• · • ̳) ᭢
|
||||
/ づ `}<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]) => (
|
||||
<>・:。<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>
|
||||
</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>
|
||||
|
Loading…
Reference in New Issue
Block a user