Skip to content

Commit

Permalink
Feat: Add og image (#1525)
Browse files Browse the repository at this point in the history
* add og image

* add slash

* add parameter for later force-updates
  • Loading branch information
lorenzolewis authored Sep 8, 2023
1 parent 36c0003 commit 0e87183
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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 }),
Expand All @@ -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',
Expand Down
Binary file added public/og.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 0e87183

Please sign in to comment.