diff --git a/src/config.ts b/src/config.ts index 9be536e..8932ec9 100644 --- a/src/config.ts +++ b/src/config.ts @@ -8,7 +8,7 @@ export const themeConfig: ThemeConfig = { // site subtitle (optional) subtitle: '再现版式之美', // site description for SEO - description: 'Retypeset is a static blog theme based on the Astro framework, inspired by Typography Retypeset establishes a new visual standard and reimagines the layout of all pages, offering a reading experience similar to paper books, reviving the beauty of typography. Details in every sight, elegance in every space.', + description: 'Retypeset is a static blog theme based on the Astro framework, inspired by Typography. Retypeset establishes a new visual standard and reimagines the layout of all pages, offering a reading experience similar to paper books, reviving the beauty of typography. Details in every sight, elegance in every space.', // author name author: 'radishzz', // site url diff --git a/src/layouts/Head.astro b/src/layouts/Head.astro index 3aa9695..47b3229 100644 --- a/src/layouts/Head.astro +++ b/src/layouts/Head.astro @@ -31,9 +31,10 @@ const pathParts = currentPath.split('/').filter(part => part !== '') const slug = pathParts.length > 0 ? pathParts[pathParts.length - 1] : '' // Prioritize auto-generated OG image, otherwise use fallback OG image -const pageImage = isPost && slug ? `${url}/og/${slug}` : favicon +const pageImage = isPost && slug + ? `${url}/og/${slug}.png` + : (favicon.startsWith('http') ? favicon : `${url}${favicon}`) --- -