Fix /rss.xml link on trailing slash
This commit is contained in:
@ -4,7 +4,7 @@ import Logo from '~/components/common/Logo.astro';
|
||||
import ToggleTheme from '~/components/common/ToggleTheme.astro';
|
||||
import ToggleMenu from '~/components/common/ToggleMenu.astro';
|
||||
|
||||
import { getHomePermalink, getBlogPermalink, getPermalink } from '~/utils/permalinks';
|
||||
import { getHomePermalink, getBlogPermalink, getPermalink, getAsset } from '~/utils/permalinks';
|
||||
|
||||
const links = [
|
||||
{
|
||||
@ -108,7 +108,7 @@ const links = [
|
||||
<a
|
||||
class="text-gray-500 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="RSS Feed"
|
||||
href={getPermalink('/rss.xml')}
|
||||
href={getAsset('/rss.xml')}
|
||||
>
|
||||
<Icon name="tabler:rss" class="w-5 h-5" />
|
||||
</a>
|
||||
|
Reference in New Issue
Block a user