diff --git a/astro.config.mjs b/astro.config.mjs index 347ebafd0..d6882b207 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -52,9 +52,11 @@ const authors = { }, }; +const site = 'https://beta.tauri.app' + // https://astro.build/config export default defineConfig({ - site: 'https://beta.tauri.app', + site, integrations: [ starlightLinksValidator(), starlightBlog({ authors }), @@ -72,6 +74,16 @@ export default defineConfig({ twitter: 'https://twitter.com/TauriApps', mastodon: 'https://fosstodon.org/@TauriApps', }, + head: [ + { + tag: 'meta', + attrs: { property: 'og:image', content: site + '/og.png?v=1' }, + }, + { + tag: 'meta', + attrs: { property: 'twitter:image', content: site + '/og.png?v=1' }, + }, + ], // TODO: Be sure this is updated when the branch is switched editLink: { baseUrl: 'https://github.com/tauri-apps/tauri-docs/edit/next', diff --git a/public/og.png b/public/og.png new file mode 100644 index 000000000..1e4a4c12d Binary files /dev/null and b/public/og.png differ