mirror of
https://github.com/kogakure/website-astro-stefanimhoff.de.git
synced 2026-02-03 20:15:27 +00:00
chore: shorten the links of tracking events
This commit is contained in:
@@ -13,7 +13,7 @@ const isExternal = (href as string).startsWith('http');
|
|||||||
|
|
||||||
<a
|
<a
|
||||||
class:list={['link', { external: isExternal }, className]}
|
class:list={['link', { external: isExternal }, className]}
|
||||||
data-umami-event={isExternal ? `Link: ${href}` : undefined}
|
data-umami-event={isExternal ? `Link: ${href.replace(/^(https?:\/\/)/, '')}` : undefined}
|
||||||
href={href}
|
href={href}
|
||||||
rel={isExternal ? 'nofollow noopener noreferrer' : undefined}
|
rel={isExternal ? 'nofollow noopener noreferrer' : undefined}
|
||||||
target={isExternal ? '_blank' : undefined}
|
target={isExternal ? '_blank' : undefined}
|
||||||
|
|||||||
Reference in New Issue
Block a user