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.

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