Max Glenister

Things I've found

Links, videos and the odd note, posted here first and shared to Mastodon. The best of each week ends up in Links Worth a Look on the blog.

I spent some time playing with Astro over the weekend, and have put together a small shell script to automate converting Jekyll's filename-based post dates (yyyy-mm-dd-slug.md) to being a pubDate frontmatter property within each file.

It handles skipping file with a pubDate already specified, and skipping files with no date in the filename.

Migrate Jekyll filename-based post dates to Astro pubDate frontmatter Migrate Jekyll filename-based post dates to Astro pubDate frontmatter - migrate-jekyll-posts-to-astro.sh gist.github.com