Replace getRelativeLink with getPermalink

This commit is contained in:
prototypa
2023-01-06 12:47:00 -05:00
parent 834dd1b998
commit ac24c9e94e
5 changed files with 22 additions and 28 deletions

View File

@ -1,6 +1,6 @@
---
import { Icon } from 'astro-icon';
import { getHomePermalink, getRelativeLink } from '~/utils/permalinks';
import { getHomePermalink, getPermalink } from '~/utils/permalinks';
const links = [
{
@ -53,7 +53,7 @@ const social = [
{ label: 'Twitter', icon: 'tabler:brand-twitter', href: '#' },
{ label: 'Instagram', icon: 'tabler:brand-instagram', href: '#' },
{ label: 'Facebook', icon: 'tabler:brand-facebook', href: '#' },
{ label: 'RSS', icon: 'tabler:rss', href: getRelativeLink('/rss.xml') },
{ label: 'RSS', icon: 'tabler:rss', href: getPermalink('/rss.xml') },
{ label: 'Github', icon: 'tabler:brand-github', href: 'https://github.com/onwidget/astrowind' },
];
---