Skip to content

Commit

Permalink
add og image (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
amalshaji authored Apr 12, 2024
1 parent b22a0ab commit d218569
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ export default defineConfig({
src: "./src/assets/logo.svg",
replacesTitle: true,
},
components: {
Head: "./src/components/Head.astro",
},
sidebar: [
{
label: "Guides",
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.
9 changes: 9 additions & 0 deletions docs/src/components/Head.astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
import type { Props } from "@astrojs/starlight/props";
import Default from "@astrojs/starlight/components/Head.astro";
---

<Default {...Astro.props}><slot /></Default>

<meta property="og:image" content="https://portr.dev/og.png" />
<meta name="twitter:image" content="https://portr.dev/og.png" />

0 comments on commit d218569

Please sign in to comment.