From 8a46ddf8430ba03c59448e883e1d6bf3146c2fab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Latzarus?= Date: Sun, 12 Jan 2025 10:48:46 +0100 Subject: [PATCH] feat: add social links in footer --- src/components/widgets/Footer.astro | 1 + src/navigation.ts | 7 ++----- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/components/widgets/Footer.astro b/src/components/widgets/Footer.astro index 1e51d2a..d00ef6e 100644 --- a/src/components/widgets/Footer.astro +++ b/src/components/widgets/Footer.astro @@ -84,6 +84,7 @@ const { socialLinks = [], secondaryLinks = [], links = [], footNote = '', theme class="text-muted dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-gray-700 focus:outline-none focus:ring-4 focus:ring-gray-200 dark:focus:ring-gray-700 rounded-lg text-sm p-2.5 inline-flex items-center" aria-label={ariaLabel} href={href} + rel="me" > {icon && } diff --git a/src/navigation.ts b/src/navigation.ts index b56a427..e87b48d 100644 --- a/src/navigation.ts +++ b/src/navigation.ts @@ -77,11 +77,8 @@ export const footerData = { { text: 'Privacy Policy', href: getPermalink('/privacy') }, ], socialLinks: [ - { ariaLabel: 'X', icon: 'tabler:brand-x', href: '#' }, - { ariaLabel: 'Instagram', icon: 'tabler:brand-instagram', href: '#' }, - { ariaLabel: 'Facebook', icon: 'tabler:brand-facebook', href: '#' }, - { ariaLabel: 'RSS', icon: 'tabler:rss', href: getAsset('/rss.xml') }, - { ariaLabel: 'Github', icon: 'tabler:brand-github', href: 'https://github.com/onwidget/astrowind' }, + { ariaLabel: 'Mastodon', icon: 'tabler:brand-mastodon', href: 'https://mastodon.social/@biblys' }, + { ariaLabel: 'Github', icon: 'tabler:brand-github', href: 'https://github.com/biblys' }, ], footNote: ` onWidget logo