Files
svemagie fd866418bb
Build & Deploy / build-and-deploy (push) Successful in 1m49s
fix: derive YouTube ID from URL in all listing templates
Listing pages (blog, frontpage, likes, bookmarks, reposts, replies,
featured) only checked post.data.youtubeVideoId from frontmatter.
Older posts without that field fell through to unfurl, which cannot
scrape YouTube and returns a text-only fallback — no thumbnail image.

Apply the same URL-derived fallback already used in reply-context.njk:

  {% set _ytId = post.data.youtubeVideoId or (likedUrl | youtubeId) %}

Frontmatter value still takes precedence; youtubeId filter handles
both youtube.com?v= and youtu.be/ formats.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-11 20:04:40 +02:00
..