diff --git a/src/components/HeadSEO.astro b/src/components/HeadSEO.astro index fe37675..864aca5 100644 --- a/src/components/HeadSEO.astro +++ b/src/components/HeadSEO.astro @@ -1,17 +1,6 @@ --- import { getImage } from '@astrojs/image'; import { SITE, OPEN_GRAPH } from '../config'; - -const defaultImage = OPEN_GRAPH.image.src - ? ( - await getImage({ - src: OPEN_GRAPH.image.src, - alt: OPEN_GRAPH.image.alt, - width: 640, - height: 320, - }) - ).src - : ''; --- @@ -25,7 +14,7 @@ const defaultImage = OPEN_GRAPH.image.src - + @@ -34,7 +23,7 @@ const defaultImage = OPEN_GRAPH.image.src - + diff --git a/src/config.ts b/src/config.ts index e204ed4..ead3343 100644 --- a/src/config.ts +++ b/src/config.ts @@ -7,7 +7,7 @@ export const SITE = { export const OPEN_GRAPH = { image: { - src: '../src/assets/images/og-image.png', + src: './src/assets/images/og_image.png', alt: 'Odkazy text s tlačítkami', }, twitter: 'oliminator34', diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro index 7357b13..cd566d6 100644 --- a/src/layouts/Layout.astro +++ b/src/layouts/Layout.astro @@ -9,7 +9,7 @@ import HeadSEO from '../components/HeadSEO.astro'; - + diff --git a/src/pages/index.astro b/src/pages/index.astro index 3ae697b..e0ae38b 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -11,7 +11,7 @@ import Item from '../components/Item.astro'; -
+