fix: favicon and rss url error

This commit is contained in:
radishzzz 2025-03-20 11:59:17 +00:00
parent 9283287442
commit 850d9c2403
10 changed files with 23 additions and 13 deletions

View file

@ -19,7 +19,7 @@ const links = configLinks.map((link) => {
if (link.name === 'RSS') {
return {
...link,
url: currentLang === defaultLocale ? link.url : `/${currentLang}${link.url}/`,
url: currentLang === defaultLocale ? link.url : `/${currentLang}${link.url}`,
}
}
return link

View file

@ -17,7 +17,7 @@ export const themeConfig: ThemeConfig = {
url: 'https://retypeset.radishzz.cc',
// favicon url
// recommended formats: SVG, PNG and ICO
favicon: '/assets/favicon.svg', // or https://example.com/favicon.svg
favicon: '/icon/favicon.svg', // or https://example.com/favicon.svg
},
// SITE INFORMATION >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> END

View file

@ -56,7 +56,8 @@ const pageImage = postSlug
{commentURL && <link rel="dns-prefetch" href={commentURL} />}
{imageHostURL && <link rel="preconnect" href={imageHostURL} crossorigin />}
{imageHostURL && <link rel="dns-prefetch" href={imageHostURL} />}
<link rel="alternate" href="/rss.xml" type="application/rss+xml" title="RSS" />
<link rel="alternate" href="/rss.xml" type="application/rss+xml" title="RSS Feed" />
<link rel="alternate" href="/atom.xml" type="application/atom+xml" title="Atom Feed" />
<link rel="sitemap" href="/sitemap-index.xml" />
<link rel="canonical" href={Astro.url} />

View file

@ -25,7 +25,7 @@ export const { getStaticPaths, GET } = OGImageRoute({
title: page.title,
description: page.description,
logo: {
path: './public/image/og-logo.png', // Required local path and PNG format
path: './public/icon/og-logo.png', // Required local path and PNG format
size: [250],
},
border: {