Skip to content

Commit

Permalink
feat: add social links in footer
Browse files Browse the repository at this point in the history
  • Loading branch information
clemlatz committed Jan 12, 2025
1 parent 491bdaa commit 8a46ddf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
1 change: 1 addition & 0 deletions src/components/widgets/Footer.astro
Original file line number Diff line number Diff line change
Expand Up @@ -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 && <Icon name={icon} class="w-5 h-5" />}
<Fragment set:html={text} />
Expand Down
7 changes: 2 additions & 5 deletions src/navigation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: `
<img class="w-5 h-5 md:w-6 md:h-6 md:-mt-0.5 bg-cover mr-1.5 rtl:mr-0 rtl:ml-1.5 float-left rtl:float-right rounded-sm" src="https://onwidget.com/favicon/favicon-32x32.png" alt="onWidget logo" loading="lazy"></img>
Expand Down

0 comments on commit 8a46ddf

Please sign in to comment.