From d4ce1f94e3da847c873ff53d056e73010b6040b4 Mon Sep 17 00:00:00 2001 From: Artem Kovalov Date: Tue, 20 Oct 2026 21:04:28 +0200 Subject: [PATCH] docs: use absolute URLs for og:image and twitter:image Twitter/X and several other social crawlers require absolute URLs to actually fetch and render the preview image. Signed-off-by: Artem Kovalov --- docs/.vitepress/config.mts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/.vitepress/config.mts b/docs/.vitepress/config.mts index c68b0fc..30b762f 100644 --- a/docs/.vitepress/config.mts +++ b/docs/.vitepress/config.mts @@ -54,11 +54,11 @@ export default withMermaid({ base: "/", head: [ ['link', { rel: 'icon', href: 'https://raw.githubusercontent.com/cobaltcore-dev/.github/refs/heads/main/assets/Logo_Cobalt_Core_background_white.svg' }], - ['meta', { property: 'og:image', content: '/social-preview.svg' }], + ['meta', { property: 'og:image', content: 'https://cobaltcore.dev/social-preview.svg' }], ['meta', { property: 'og:image:width', content: '1200' }], ['meta', { property: 'og:image:height', content: '630' }], ['meta', { name: 'twitter:card', content: 'summary_large_image' }], - ['meta', { name: 'twitter:image', content: '/social-preview.svg' }], + ['meta', { name: 'twitter:image', content: 'https://cobaltcore.dev/social-preview.svg' }], ], vite: { resolve: {