From 51ab8f842dc9520381b157b711726217a52e4f61 Mon Sep 17 00:00:00 2001 From: Will Estes Date: Thu, 16 Jul 2026 06:57:48 -0400 Subject: [PATCH] Use a branded landscape social card instead of the raw portrait cover 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 --- content/gift/index.md | 7 ++++++- layouts/_default/baseof.html | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/content/gift/index.md b/content/gift/index.md index b1c5918..c1c9c6d 100644 --- a/content/gift/index.md +++ b/content/gift/index.md @@ -11,9 +11,14 @@ hero_subhead: "This story, occasional emails when something new comes out and ot cta_text: "Send me the story" # Cover image, hosted in the public downloads bucket alongside the epub. -# Used as the on-page hero image and for the og:image/Twitter card meta tags. +# Used as the on-page hero image. cover_image: "https://downloads.michaelferrara.org/neon-tan/neon_tan_cover.jpg" +# Optional: a landscape (1200x630) variant of the cover for social-share +# previews (og:image/Twitter card). Falls back to cover_image if unset -- +# see layouts/_default/baseof.html. +social_image: "https://downloads.michaelferrara.org/neon-tan/neon_tan_cover_social.jpg" + # Direct link to the epub in the public downloads bucket — shown as an # on-page button immediately after a successful signup, independent of the # welcome email (see layouts/partials/course-enroll-form.html). diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 2998504..7a29dae 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -5,7 +5,7 @@ {{ if .IsHome }}{{ .Site.Title }}{{ else }}{{ .Title }} · {{ .Site.Title }}{{ end }} - {{ with .Params.cover_image }} + {{ with .Params.social_image | default .Params.cover_image }}