diff --git a/public/image/Favicon.svg b/public/image/Favicon.svg deleted file mode 100644 index c6e5989..0000000 --- a/public/image/Favicon.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/public/image/Language-Switcher.svg b/public/image/Language-Switcher.svg deleted file mode 100644 index e93f63b..0000000 --- a/public/image/Language-Switcher.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/public/image/Theme-Toggle.svg b/public/image/Theme-Toggle.svg deleted file mode 100644 index ae92b95..0000000 --- a/public/image/Theme-Toggle.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/public/image/Logo-On-OpenGraph.png b/public/image/og-logo.png similarity index 100% rename from public/image/Logo-On-OpenGraph.png rename to public/image/og-logo.png diff --git a/public/image/og-screenshot.png b/public/image/og-screenshot.png new file mode 100644 index 0000000..4ca8c30 Binary files /dev/null and b/public/image/og-screenshot.png differ diff --git a/src/config.ts b/src/config.ts index 329d98c..6cb5a03 100644 --- a/src/config.ts +++ b/src/config.ts @@ -17,7 +17,7 @@ export const themeConfig: ThemeConfig = { url: 'https://retypeset.radishzz.cc', // favicon url // support only SVG, PNG and ICO - favicon: '/image/Favicon.svg', // or https://example.com/favicon.svg + favicon: '/image/favicon.svg', // or https://example.com/favicon.svg }, // SITE INFORMATION >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> END diff --git a/src/layouts/Head.astro b/src/layouts/Head.astro index 07b0a76..209abc0 100644 --- a/src/layouts/Head.astro +++ b/src/layouts/Head.astro @@ -28,10 +28,10 @@ const pageTitle = postTitle ? `${postTitle} | ${headTitle}` : `${headTitle} - ${ const pageDescription = postDescription || description // TODO: Change openGraph image fallback url const pageImage = postSlug - ? `${url}/opengraph/${postSlug}.png` + ? `${url}/og/${postSlug}.png` : apiflashKey ? `https://api.apiflash.com/v1/urltoimage?access_key=${apiflashKey}&url=${url}${langCode}&format=png&width=1500&height=788&ttl=86400&wait_until=network_idle&no_tracking=true` - : `https://api.apiflash.com/v1/urltoimage?access_key=02a837b6188f4ba0a7fd9fbeff03a83e&url=https://retypeset.radishzz.cc${langCode}&format=png&width=1500&height=788&ttl=604800&wait_until=network_idle&no_tracking=true` + : `/public/image/og-screenshot.png` --- diff --git a/src/pages/opengraph/[...image].ts b/src/pages/og/[...image].ts similarity index 94% rename from src/pages/opengraph/[...image].ts rename to src/pages/og/[...image].ts index 2af6212..7533957 100644 --- a/src/pages/opengraph/[...image].ts +++ b/src/pages/og/[...image].ts @@ -24,7 +24,7 @@ export const { getStaticPaths, GET } = OGImageRoute({ title: page.title, description: page.description, logo: { - path: './public/image/Logo-On-OpenGraph.png', // Required local path and PNG format + path: './public/image/og-logo.png', // Required local path and PNG format size: [70], }, font: {