Feat: Add og image (#1525)

* add og image

* add slash

* add parameter for later force-updates
This commit is contained in:
Lorenzo Lewis
2023-09-08 08:39:24 +01:00
committed by GitHub
parent 36c0003796
commit 0e8718355d
2 changed files with 13 additions and 1 deletions

View File

@@ -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',

BIN
public/og.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 483 KiB