Skip to content

v0.11.2 — Absolute Article.image URL in JSON-LD

Choose a tag to compare

@stackdump stackdump released this 21 Apr 03:59
· 6 commits to main since this release
6ad54f1

Fix Google Search Console's "No thumbnail URL provided" warning for posts that embed mp4 videos.

The Article-level `image` field in JSON-LD was emitted as a relative path (`/images/...`) while `VideoObject.thumbnailUrl` was already being prefixed with `baseURL`. Google's video-indexing heuristic appears to walk `Article.image` separately, and a relative URL silently drops out of the "thumbnail provided" check.

Mirror the `baseURL` prefixing we already apply to `VideoObject.thumbnailUrl`: when `fm.Image` doesn't start with `http`, prepend the canonical site URL. Applies to every post on every site using tens-city; no behavior change for posts whose frontmatter already points at an absolute URL.

One commit, 9 lines, `pkg/markdown/markdown.go`.