Use a branded landscape social card instead of the raw portrait cover
deploy / deploy (push) Successful in 4s

The book cover is a 1664x2432 portrait image, which crops badly into
og:image's expected 1200x630. Add a social_image field (a composited
card: cover centered on the site's parchment background) that og:image/
twitter:card prefer, falling back to cover_image if unset.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
2026-07-16 06:57:48 -04:00
parent 55283f14aa
commit 51ab8f842d
2 changed files with 7 additions and 2 deletions
+1 -1
View File
@@ -5,7 +5,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{{ if .IsHome }}{{ .Site.Title }}{{ else }}{{ .Title }} · {{ .Site.Title }}{{ end }}</title>
<meta name="description" content="{{ .Description | default .Site.Params.description }}">
{{ with .Params.cover_image }}
{{ with .Params.social_image | default .Params.cover_image }}
<meta property="og:title" content="{{ $.Title }}">
<meta property="og:description" content="{{ $.Description | default $.Site.Params.description }}">
<meta property="og:image" content="{{ . }}">