Skip to content

images: split banner vs SEO roles for memos and posts#14

Merged
xrendan merged 2 commits intomainfrom
memo-post-banner-seo-split
May 4, 2026
Merged

images: split banner vs SEO roles for memos and posts#14
xrendan merged 2 commits intomainfrom
memo-post-banner-seo-split

Conversation

@xrendan
Copy link
Copy Markdown
Member

@xrendan xrendan commented May 4, 2026

Summary

york_factory now exposes both banner_image_url and seo_image_url on memos and posts. This PR routes each image to its intended role:

  • SEO image drives social previews only — og:image, twitter:image, JSON-LD article image.
  • Banner image drives featured displays only — homepage featured memo card and the post slot in the homepage feed.
  • Banner hero on the memo detail page (/memos/[slug], /toronto/memos/[slug]) is removed; the banner is reserved for the featured spot.

Internally renamed splashImagebannerImage to match the API field. Dropped the now-unused splash_image_url from YFMemoDetail (the field moved to the list endpoint as banner_image_url). Added bannerImage to PostDetail / MemoItem mapping for posts.

Test plan

  • Verified against prod york_factory at http://localhost:5050:
    • /memos/say-it (distinct seo + banner): og:image / twitter:image / JSON-LD image → say-it-seo.png; no banner hero rendered on the page.
    • /posts/spring-economic-update-statement: og:image / twitter:imagespring-econ-update.png.
    • Homepage featured memo card → uses BuildCanadaSayIt.png (banner).
  • tsc --noEmit clean.
  • Smoke-test on staging.

🤖 Generated with Claude Code

xrendan and others added 2 commits May 4, 2026 16:43
york_factory now exposes banner_image_url and seo_image_url on both memos
and posts. SEO images drive social previews (OG, Twitter, JSON-LD); banner
images drive featured displays only (homepage featured memo card, post
slot in the homepage feed). The banner hero on the memo detail page is
removed — banner is reserved for the featured spot.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Drop unused imports/vars, suppress one intentional useEffect dep warning,
and migrate tracker <img> tags to next/image.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@xrendan xrendan merged commit f755883 into main May 4, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant