Skip to content

Commit 4a35f9a

Browse files
committed
Fix site link in footer for webmentions
1 parent 7b295e9 commit 4a35f9a

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/components/Footer/index.astro

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
import contactData from '@content/contact.json'
3-
import { absoluteUrl } from '@components/scripts/utils'
3+
import { getSiteUrl } from '@components/scripts/utils/siteUrlClient'
44
import { formatPhoneNumber } from '@components/Footer/server'
55
import Avatar from '@components/Avatar/index.astro'
66
import Icon from '@components/Icon/index.astro'
@@ -126,7 +126,7 @@ const year = new Date().getFullYear()
126126
{/* Page footer RSS link */}
127127
<span class:list={[styles.footerFeedIcon, 'flex items-center w-12 lg:h-12 lg:w-12']}>
128128
<a
129-
href={absoluteUrl('/feed.xml', Astro.site)}
129+
href={`${getSiteUrl()}/feed.xml`}
130130
title="RSS Feed"
131131
class="text-text [&_.icon]:fill-text! [&_.icon]:stroke-text! [&_.icon]:h-10 [&_.icon]:w-10 hover:[&_.icon]:fill-secondary! hover:[&_.icon]:stroke-secondary! focus:[&_.icon]:fill-secondary! focus:[&_.icon]:stroke-secondary! focus:outline-none"
132132
>
@@ -141,7 +141,7 @@ const year = new Date().getFullYear()
141141
&copy; 2018&ndash;{year}
142142
</span>
143143
<span class="ml-4">
144-
<a rel="me" href={absoluteUrl('/', Astro.site)} class="text-text underline decoration-dotted decoration-text underline-offset-4 hover:text-secondary hover:decoration-secondary focus:text-secondary focus:decoration-secondary focus:outline-none">
144+
<a rel="me" href={`${getSiteUrl()}/`} class="text-text underline decoration-dotted decoration-text underline-offset-4 hover:text-secondary hover:decoration-secondary focus:text-secondary focus:decoration-secondary focus:outline-none">
145145
{contactData.company.name}
146146
</a>
147147
</span>

0 commit comments

Comments
 (0)