Skip to content

Commit 6f3834c

Browse files
committed
feat: add og image
1 parent 989b438 commit 6f3834c

2 files changed

Lines changed: 13 additions & 0 deletions

File tree

public/og-image.png

83.7 KB
Loading

src/layouts/BaseLayout.astro

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,19 @@ const navItems = [
2323
<meta name="description" content={description}>
2424
<title>{title}</title>
2525
<link rel="icon" type="image/svg+xml" href="/favicon.svg">
26+
27+
<!-- OpenGraph / Social Media -->
28+
<meta property="og:type" content="website">
29+
<meta property="og:title" content={title}>
30+
<meta property="og:description" content={description}>
31+
<meta property="og:image" content={`${Astro.site || 'https://wulf.gg'}/og-image.png`}>
32+
<meta property="og:url" content={Astro.url}>
33+
34+
<!-- Twitter Card -->
35+
<meta name="twitter:card" content="summary_large_image">
36+
<meta name="twitter:title" content={title}>
37+
<meta name="twitter:description" content={description}>
38+
<meta name="twitter:image" content={`${Astro.site || 'https://wulf.gg'}/og-image.png`}>
2639
<link rel="preconnect" href="https://fonts.googleapis.com">
2740
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
2841
<link href="https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;700&display=swap" rel="stylesheet">

0 commit comments

Comments
 (0)