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.
This PR migrates our showcase collection to use more recent Astro features to simplify maintenance.
image()
helper instead of a custom resolve functionastro:assets
— previously we committed two different resolutions to the repo and chose dynamically between them, now we just toggle the required width in<Image>
src/content/showcase/_images/
directory for these. Now each site’s image file should appear alongside its data file in the file browser, e.g.There still lots and lots of files — not so much I can do about that. (I decided against a single large
showcase.json
data file thinking it would make finding a specific entry or seeing new entries in Git a little more clumsy.)update:showcase
package script to match this new setupjson-to-pretty-yaml
dependency with the battle-testedyaml
one.yaml
is already used by other dependencies, so althoughjson-to-pretty-yaml
is laudibly minimal and lightweight, its more limited features weren’t worth working around.Browser Test Checklist
I have tested this PR on at least three of the following browsers: