mastodon verification

This commit is contained in:
Chris W 2023-09-20 22:41:37 -06:00
parent 129d2008fe
commit 95fcacf581
2 changed files with 4 additions and 1 deletions

View File

@ -4,10 +4,11 @@ export interface Props {
className?: string; className?: string;
ariaLabel?: string; ariaLabel?: string;
title?: string; title?: string;
rel?: string;
disabled?: boolean; disabled?: boolean;
} }
const { href, className, ariaLabel, title, disabled = false } = Astro.props; const { href, className, ariaLabel, title, rel, disabled = false } = Astro.props;
--- ---
<a <a
@ -16,6 +17,7 @@ const { href, className, ariaLabel, title, disabled = false } = Astro.props;
class={`group inline-block ${className}`} class={`group inline-block ${className}`}
aria-label={ariaLabel} aria-label={ariaLabel}
title={title} title={title}
rel={rel}
aria-disabled={disabled} aria-disabled={disabled}
> >
<slot /> <slot />

View File

@ -16,6 +16,7 @@ const { centered = false, withText = false } = Astro.props;
SOCIALS.filter(social => social.active).map(social => ( SOCIALS.filter(social => social.active).map(social => (
<LinkButton <LinkButton
href={social.href} href={social.href}
rel={social.name==="Mastodon" ? "me" : ""}
className="link-button flex flex-row items-center gap-2" className="link-button flex flex-row items-center gap-2"
title={social.linkTitle} title={social.linkTitle}
> >