]> danix's work - danix.xyz-2.git/commit
feat: add Open Graph and Twitter Card meta tags for social sharing
authorDanilo M. <redacted>
Sat, 18 Apr 2026 18:22:10 +0000 (20:22 +0200)
committerDanilo M. <redacted>
Sat, 18 Apr 2026 18:22:10 +0000 (20:22 +0200)
commitd01eb91363ad385fa62125976441ea71ceeb43ba
treea97146aed4bce8012a5144a7c5b76b2c1714290e
parentc5e429da6c19a2331fbedcb64839a66760214563
feat: add Open Graph and Twitter Card meta tags for social sharing

Implement comprehensive OG and Twitter Card support:
- og:title, og:description, og:image, og:type (website/article)
- og:article:published_time and og:article:author for article pages
- twitter:card with summary_large_image, twitter:title, twitter:description, twitter:image
- Per-page description from excerpt field with fallback to site description
- Article-specific tags only rendered for pages with dates
- Default dark thumbnail fallback when article has no image
- Empty twitterHandle param (optional fill-in for users)

Extracted head meta into new partial for maintainability.

Co-Authored-By: Claude Haiku 4.5 <redacted>
hugo.toml
themes/danix-xyz-hacker/layouts/_default/baseof.html
themes/danix-xyz-hacker/layouts/partials/head-meta.html [new file with mode: 0644]