Skip to content

Commit 7b94695

Browse files
committed
Add Open Graph image to docs pages
Add og:image and twitter:image meta tags using the existing site OG banner. Use correct name= attribute for Twitter card tags.
1 parent b0424f5 commit 7b94695

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

docs/src/components/starlight/Head.astro

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,16 @@ import PlausibleAnalytics from "@/components/PlausibleAnalytics.astro";
2222
<!-- Additional meta for better SEO -->
2323
<meta name="author" content="RocketSim" />
2424

25+
<!-- Open Graph image for social sharing -->
26+
<meta
27+
property="og:image"
28+
content="https://www.rocketsim.app/og-banner-rocketsim.jpg"
29+
/>
30+
<meta name="twitter:card" content="summary_large_image" />
31+
<meta
32+
name="twitter:image"
33+
content="https://www.rocketsim.app/og-banner-rocketsim.jpg"
34+
/>
35+
<meta name="twitter:site" content="@rocketsim_app" />
36+
2537
<PlausibleAnalytics />

0 commit comments

Comments
 (0)