fix(blog): backfill feature_image on 2 published image-less posts#170
Merged
Conversation
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.
📝 Blog Post ReviewFound 2 blog post(s) in this PR:
Schema Validation✅ All posts pass schema validation. Slash Commands
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Every published blog post now renders a
BlogCardimage. Two published 2019 posts were the only published posts still missingfeature_image:2019-03-10-querying-kml-data-with-qgis-and-r→IMG_0815-Edit.jpg2019-04-15-open-source-collaboration-and-higher-education→IMG_6649-Edit.jpgImages 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/libadd-feature-images.mts(andassign-categories.mts) were dead — both importparseFrontmatterRaw/ParsedFrontmatter, which the.mjs→.mtsrefactor (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.mtsrun:Added: 2 (2 from backfill), all other posts skipped (already imaged or unpublished).assign-categories.mts --dry-runnow runs clean instead of crashing.static/images/posts/.