Skip to main content

Max Glenister

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.

https://gist.github.com/omgmog/a6de66c8ae1e2c763fe5ad536938e7c1