Replace getRelativeLink with getPermalink
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
---
|
||||
import { getRelativeLink } from '~/utils/permalinks';
|
||||
import { getPermalink } from '~/utils/permalinks';
|
||||
---
|
||||
|
||||
<link rel="shortcut icon" href={getRelativeLink('/favicon.ico')} />
|
||||
<link rel="icon" type="image/svg+xml" href={getRelativeLink('/favicon.svg')} />
|
||||
<link rel="mask-icon" href={getRelativeLink('/favicon.svg')} color="#8D46E7" />
|
||||
<link rel="shortcut icon" href={getPermalink('/favicon.ico')} />
|
||||
<link rel="icon" type="image/svg+xml" href={getPermalink('/favicon.svg')} />
|
||||
<link rel="mask-icon" href={getPermalink('/favicon.svg')} color="#8D46E7" />
|
||||
|
@ -1,6 +1,6 @@
|
||||
---
|
||||
import { Icon } from 'astro-icon';
|
||||
import { getRelativeLink } from '~/utils/permalinks';
|
||||
import { getPermalink } from '~/utils/permalinks';
|
||||
|
||||
export interface Props {
|
||||
prevUrl: string;
|
||||
@ -16,13 +16,13 @@ const { prevUrl, nextUrl, prevText = 'Newer posts', nextText = 'Older posts' } =
|
||||
(prevUrl || nextUrl) && (
|
||||
<div class="container flex">
|
||||
<div class="flex flex-row mx-auto container justify-between">
|
||||
<a href={getRelativeLink(prevUrl)} class={`btn btn-ghost px-3 mr-2 ${!prevUrl ? 'invisible' : ''}`}>
|
||||
<a href={getPermalink(prevUrl)} class={`btn btn-ghost px-3 mr-2 ${!prevUrl ? 'invisible' : ''}`}>
|
||||
<div class="flex flex-row align-middle">
|
||||
<Icon name="tabler:chevron-left" class="w-6 h-6" />
|
||||
<p class="ml-2">{prevText}</p>
|
||||
</div>
|
||||
</a>
|
||||
<a href={getRelativeLink(nextUrl)} class={`btn btn-ghost px-3 ${!nextUrl ? 'invisible' : ''}`}>
|
||||
<a href={getPermalink(nextUrl)} class={`btn btn-ghost px-3 ${!nextUrl ? 'invisible' : ''}`}>
|
||||
<div class="flex flex-row align-middle">
|
||||
<span class="mr-2">{nextText}</span>
|
||||
<Icon name="tabler:chevron-right" class="w-6 h-6" />
|
||||
|
Reference in New Issue
Block a user