Skip to content

Commit f7bd4d4

Browse files
MaxDatenclaude
andcommitted
feat: add complete OG and Twitter Card meta tags
- Add og:url, og:image with absolute URL to generated OG card - Add og:image:width, og:image:height, og:image:type dimensions - Add og:image:alt for accessibility - Add Twitter Card meta tags (summary_large_image) - Point to generated 1200x630 PNG at /img/og-card.png 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent e34b4d2 commit f7bd4d4

1 file changed

Lines changed: 13 additions & 3 deletions

File tree

src/templates/template.html

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,22 @@
1212
<meta name="date" content="$date-meta$" />
1313
$endif$
1414
<meta name="description" content="$if(subtitle)$$subtitle$ - $endif$Curriculum Vitae of $pagetitle$" />
15+
<!-- Open Graph Meta Tags -->
1516
<meta property="og:title" content="$pagetitle$$if(subtitle)$ - $subtitle$$endif$" />
1617
<meta property="og:type" content="profile" />
1718
<meta property="og:description" content="$if(subtitle)$$subtitle$ - $endif$Curriculum Vitae" />
18-
$if(profile-picture)$
19-
<meta property="og:image" content="$profile-picture$" />
20-
$endif$
19+
<meta property="og:url" content="https://cv.maxdaten.io/" />
20+
<meta property="og:image" content="https://cv.maxdaten.io/img/og-card.png" />
21+
<meta property="og:image:width" content="1200" />
22+
<meta property="og:image:height" content="630" />
23+
<meta property="og:image:type" content="image/png" />
24+
<meta property="og:image:alt" content="$pagetitle$ - $if(subtitle)$$subtitle$$endif$" />
25+
<!-- Twitter Card Meta Tags -->
26+
<meta name="twitter:card" content="summary_large_image" />
27+
<meta name="twitter:title" content="$pagetitle$$if(subtitle)$ - $subtitle$$endif$" />
28+
<meta name="twitter:description" content="$if(subtitle)$$subtitle$ - $endif$Curriculum Vitae" />
29+
<meta name="twitter:image" content="https://cv.maxdaten.io/img/og-card.png" />
30+
<meta name="twitter:image:alt" content="$pagetitle$ - $if(subtitle)$$subtitle$$endif$" />
2131
<title>$if(title-prefix)$$title-prefix$ - $endif$$pagetitle$</title>
2232
<style type="text/css">
2333
code {

0 commit comments

Comments
 (0)