Tag: dev
All the articles with the tag "dev".
- Astro Image In Content
Today I learned you can inline remote images in Astro content collections using the
image()schema helper. No more manual imports.schema: ({ image }) => z.object({ ogImage: image().optional(), });Game changer for authoring ergonomics.
- Css Masonry
New favorite CSS trick: using
columnsfor a masonry layout with zero JavaScript..masonry { columns: 3 280px; gap: 1.5rem; } .masonry > * { break-inside: avoid; }Three lines, no library, works everywhere.
- Ast Grep Recommendation
Switched from
ripgrepflags toast-grepfor structural code search and rewrites. Being able to match AST nodes instead of regex patterns makes refactoring feel precise rather than fragile. Highly recommend for any non-trivial codebase migration.