Latest posts
-
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...
-
Deploy a static site: Synchronize the dev environment to S3 buckets using AWS CLI [Part 3] |
We've generated a static site with Astro. Now what? Once we have HTTPS and a CDN set up, we want an easy way to update the site, right from the console.
-
Deploy a static site onto AWS: HTTPS to an S3 origin the right way using AWS Cloudfront [Part 2] |
We've generated a static site with Astro. Now what? With the site hosted, we now need to create a CDN distribution, and set up an SSL certificate for HTTPS.
-
Deploy a static site onto AWS: Static website hosting using AWS S3 [Part 1] |
We've generated a static site with Astro. Now what? For this part, we will host the site on a simple storage server (AWS S3).
-
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.
-
HTML: Hamburger menu without JS |
Menus used to require Javascript to work. With new CSS standards, not anymore.
-
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.