Posts about astro
-
Astro update broke my code blocks! |
Astro came out with version 5.1.7 recently that made unannounced breaking changes in its compatibility with various Shiki imports. Instead of trying to fix it, I moved Shiki completely off of Astro's integration instead.
-
Astro and Cloudfront: Some cache busting techniques |
Astro adds hashes at the end of asset file names, while Cloudfront caches files for a day. This causes the site to break whenever new updates are pushed...
-
Astro: Search content with Pagefind-UI |
The best way to use Pagefind-UI with Astro. There are a number of other ways that are less supported or have less functionality.
-
Astro: Customizing content routes |
Renaming each post to its slugified publish date and title.
-
Astro: Archives by year and month |
Astro allows categorizing and sorting posts by date, even without client-side Javascript.
-
Astro: Generating tag colors the easy way |
Rather than manually assign tag colors in a database, we can generate deterministic tags using a hash.
-
Astro: Dynamic routes with params and pagination |
An example of paginated listings of posts by tag, using the Astro framework.