Is it possible to have different permalink settings for different directories?
For example, if I have a Jekyll setup where blog entries are written into /blog/_posts/
and news items in /news/_posts
, then by default each entry will have permalinks in the format /blog/2011/06/24/slug.html
and /news/2011/06/24/slug.html
.
The permalinks for blog entries are fine as they are, but I need to change the permalinks format for news to something different, say /news/2011/slug
.
I've tried changing the permalink
settings in the YAML front matter for the layout used by news item, however, this does not work since permalink settings in YAML front matter are not interpolated (as confirmed in the answer to this question).
Is there a mechanism to configure path specific settings in _config.yaml
? Or is there a better what to achieve this results?