diff options
author | Julien Déramond | 2024-07-23 19:58:51 +0200 |
---|---|---|
committer | GitHub | 2024-07-23 19:58:51 +0200 |
commit | f71e6beb5bd9e8925bbaf32cb12d2546930a2b66 (patch) | |
tree | 9148e7b1895841938e6a7a3ea1b6a733145f4b62 | |
parent | 703903bb782c3fabd3fe914e40494c00f12ec945 (diff) | |
download | IT.starlight-f71e6beb5bd9e8925bbaf32cb12d2546930a2b66.tar.gz IT.starlight-f71e6beb5bd9e8925bbaf32cb12d2546930a2b66.tar.bz2 IT.starlight-f71e6beb5bd9e8925bbaf32cb12d2546930a2b66.zip |
docs: add 'og:image:alt' metadata (#2143)
-rw-r--r-- | docs/astro.config.mjs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/astro.config.mjs b/docs/astro.config.mjs index 960acb0b..883bf325 100644 --- a/docs/astro.config.mjs +++ b/docs/astro.config.mjs @@ -26,6 +26,7 @@ const NETLIFY_PREVIEW_SITE = process.env.CONTEXT !== 'production' && process.env const site = NETLIFY_PREVIEW_SITE || 'https://starlight.astro.build/'; const ogUrl = new URL('og.jpg?v=1', site).href; +const ogImageAlt = 'Make your docs shine with Starlight'; export default defineConfig({ site, @@ -58,6 +59,10 @@ export default defineConfig({ tag: 'meta', attrs: { property: 'og:image', content: ogUrl }, }, + { + tag: 'meta', + attrs: { property: 'og:image:alt', content: ogImageAlt }, + }, ], customCss: process.env.NO_GRADIENTS ? [] : ['./src/assets/landing.css'], locales, |