Repository navigation
feat(og-image-raster): fix social share preview (SVG -> PNG) - #114
Conversation
Self-identified defect: the built site's `og:image`/`twitter:image` pointed at `images/og-default.svg`. Social platforms (X/Telegram/Slack/Discord/FB/LinkedIn) do NOT render SVG as a link preview, so sharing the URL showed no image. - Authored `assets/images/og-default.src.svg` (1200×630 brand: title + tagline on the `dominicusin` dark scheme) and converted to `assets/images/og-default.png` (1200×630, 89KB) via `rsvg-convert`. Reproducible, no external service/secrets. - Switched `config/_default/params.toml` `defaultSocialImage` to `images/og-default.png`. The card-thumbnail SVG is untouched (different role). Root-cause fix: Blowfish emits the social image via `resources.Get .Site.Params.defaultSocialImage` + `.RelPermalink`, which resolves from the **assets** filesystem (not `static/`). The old `.svg` worked only because `assets/images/og-default.svg` already existed; a PNG in `static/` made `resources.Get` return nil (no og:image at all). Placing the PNG in `assets/images/` (project asset overrides theme) restores both `og:image` and `twitter:image`. Verified: built `public/index.html` → `og:image` + `twitter:image` end in `.png`; PNG 1200×630 / 89KB (<250KB); `hugo` 0 errors; lint clean; test pass; check-links 0 broken; check-perf 0 regressions. Task-system (strict 4-layer): BMAD `.planning/initiatives/og-image-raster.md`, Spec Kit `.specify/og-image-raster.md`, Beads T33–T36, GSD `.gsd/plan.md` (Phase J).
|
|
Qodo reviews are paused for this user.Troubleshooting steps vary by plan Learn more → On a Teams plan? Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center? |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Warning Review limit reached
Next review available in: 29 minutes Limit details: You’ve used all 1 included review currently available under your plan. You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: ⛔ Files ignored due to path filters (2)
📒 Files selected for processing (5)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
Self-identified defect: the built site's
og:image/twitter:imagepointed atimages/og-default.svg. Social platforms (X/Telegram/Slack/Discord/FB/LinkedIn) do NOT render SVG as a link preview — sharing the URL showed no image.What
assets/images/og-default.src.svg(1200×630 brand) →assets/images/og-default.png(1200×630, 89KB) viarsvg-convert. Reproducible, no external service/secrets.config/_default/params.tomldefaultSocialImage→images/og-default.png. Card-thumbnail SVG untouched.resources.Get .Site.Params.defaultSocialImage+.RelPermalink, which resolves from the assets FS (notstatic/). A PNG instatic/maderesources.Getreturn nil (no og:image). PNG placed inassets/images/(project asset overrides theme) → bothog:imageandtwitter:imagenow emit.png.Verification
public/index.html→og:image+twitter:imageend in.pnghugo0 errors;npm run lintclean;npm run testpass;check-links0 broken;check-perf0 regressionsTask system (strict 4-layer)
.planning/initiatives/og-image-raster.md.specify/og-image-raster.md.beads/beads.json(T33–T36).gsd/plan.md(Phase J)