Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
[Question] - Blog Recipe - Slugs / Urls #612
I am new to Wyam, I have read the docs (thanks for those!)
I am using the blogs recipe.
I am migrating my existing blog site (hugo based) and would like to keep the same URL's for my posts.
Wyam is currently generating the following format url for my posts:
I would like to generate the following to keep compatibility:
/blog/YYYY/MM/DD/[slug OR filename]
If there is no
Here is an example of what I want to achieve:
So it still leaves me with a way to go, and I think I probably need to take more control of this somehow, but I am not sure how to go about that :-)
@dazinator Something like this should do the trick (totally untested). This adds a new module to overwrite the RelativeFilePath metadata with your own path. You might need to tweak it to get exactly what you want, but hopefully this gets you most of the way there.
Ok as it's just c# - adding this revealed the pipeline keys:
Should I submit a PR to that docs page?
@daveaglick I can confirm, using your snippet above as a basis, I now have URL paths of blogs matching,
Here is the wyam.config before I close this in case it helps anybody else: