I want my blog posts to have the year and month in their permalink.
Using dynamic routing I successfully made the change:
routes:
collections:
/:
permalink: /{year}/{month}/{slug}/
template:
- index
taxonomies:
tag: /tag/{slug}/
author: /author/{slug}/
However existing content isn’t redirected. My understanding is that I have to use the redirects.json
file, but how do I use /{year}/{month}/
in it?