Fix /rss.xml link on trailing slash

This commit is contained in:
prototypa
2023-01-18 01:32:04 -05:00
parent e276a99077
commit 6ea771991b
2 changed files with 4 additions and 4 deletions

View File

@ -1,6 +1,6 @@
---
import { Icon } from 'astro-icon';
import { getHomePermalink, getPermalink } from '~/utils/permalinks';
import { getHomePermalink, getPermalink, getAsset } 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: getPermalink('/rss.xml') },
{ label: 'RSS', icon: 'tabler:rss', href: getAsset('/rss.xml') },
{ label: 'Github', icon: 'tabler:brand-github', href: 'https://github.com/onwidget/astrowind' },
];
---