Skip to content

fix(blog): backfill feature_image on 2 published image-less posts#170

Merged
Jesssullivan merged 1 commit into
mainfrom
fix/backfill-feature-images
May 30, 2026
Merged

fix(blog): backfill feature_image on 2 published image-less posts#170
Jesssullivan merged 1 commit into
mainfrom
fix/backfill-feature-images

Conversation

@Jesssullivan
Copy link
Copy Markdown
Owner

What

Every published blog post now renders a BlogCard image. Two published 2019 posts were the only published posts still missing feature_image:

  • 2019-03-10-querying-kml-data-with-qgis-and-rIMG_0815-Edit.jpg
  • 2019-04-15-open-source-collaboration-and-higher-educationIMG_6649-Edit.jpg

Images are assigned deterministically (slug-hashed) from the existing committed bird-photo backfill set via scripts/add-feature-images.mts. Unpublished drafts are intentionally left untouched (they don't render on the index).

Why the diff also touches scripts/lib

add-feature-images.mts (and assign-categories.mts) were dead — both import parseFrontmatterRaw / ParsedFrontmatter, which the .mjs→.mts refactor (df619c2) dropped, so both crashed on run. This restores those two symbols in the shared lib so the backfill tooling runs again.

Verification

  • add-feature-images.mts run: Added: 2 (2 from backfill), all other posts skipped (already imaged or unpublished).
  • assign-categories.mts --dry-run now runs clean instead of crashing.
  • Both backfill image assets already tracked in static/images/posts/.
  • Diff is exactly 4 files: 2 lib symbols + 2 post frontmatters.

The two remaining published posts without a feature_image (both 2019) now
get a deterministic bird-photo backfill so every published post renders a
BlogCard image. Unpublished drafts are intentionally left untouched.

Also restore the `parseFrontmatterRaw` helper and `ParsedFrontmatter` type
that the .mjs->.mts refactor (df619c2) dropped, which had left
add-feature-images.mts and assign-categories.mts importing nonexistent
symbols (both crashed on run). Both scripts run clean again.
@github-actions
Copy link
Copy Markdown

📝 Blog Post Review

Found 2 blog post(s) in this PR:

Post Status Date Published Tags Linear
Querying KML Point Data with QGIS and R ✏️ Modified 2019-03-10 ✅ Published gis, r, qgis, kml, data-wrangling none
Open Source Collaboration and Higher Education ✏️ Modified 2019-04-15 ✅ Published open-source, higher-education, collaboration none

Schema Validation

✅ All posts pass schema validation.

Slash Commands

Command Description
/schedule 2026-03-15 Schedule auto-merge for a date
/publish Set all posts to published: true
/draft Set all posts back to draft
/retitle "New Title" Change a post's title
/review Re-run AI prose review
/suggest-links Find unlinked keywords

@Jesssullivan Jesssullivan merged commit 029ca60 into main May 30, 2026
8 checks passed
@Jesssullivan Jesssullivan deleted the fix/backfill-feature-images branch May 30, 2026 04:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant