Skip to content

Commit

Permalink
chore: Add og image to docs
Browse files Browse the repository at this point in the history
  • Loading branch information
LekoArts committed Oct 16, 2023
1 parent d0a10a8 commit 06d59be
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion docs/astro.config.mjs
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import { defineConfig } from 'astro/config'
import starlight from '@astrojs/starlight'

const site = 'https://secco.lekoarts.de'

// https://astro.build/config
export default defineConfig({
site: 'https://secco.lekoarts.de',
site,
integrations: [
starlight({
title: 'secco',
Expand All @@ -19,6 +21,16 @@ export default defineConfig({
mastodon: 'https://mastodon.social/@lekoarts',
twitter: 'https://twitter.com/lekoarts_de',
},
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` },
},
],
favicon: '/favicon.png',
lastUpdated: true,
pagination: false,
Expand Down
Binary file added docs/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 06d59be

Please sign in to comment.