mirror of
https://github.com/tauri-apps/tauri-docs.git
synced 2026-01-31 00:35:16 +01:00
Feat: Add og image (#1525)
* add og image * add slash * add parameter for later force-updates
This commit is contained in:
@@ -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
BIN
public/og.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 483 KiB |
Reference in New Issue
Block a user