Permalinks configured in site-config seems to be ignored by sub-sections

content/blog/post1.md
content/blog/post2/_index.md

[permalinks]
blog = "/posts/:year/:title"

post1 uses the permalink specified (placed at posts/2017/post1/) but not post2 (placed at default blog/post2/). Any combination of wildcards that I tried “blog/*”, “blog/” or “blog/post2” worked even worse.

Is this a bug or a failure to understand permalinks/sections on my part?

Your “post2” is a “section page” (named “_index.md”) – sections are by definitions tied to their file path. If you put another regular content file in the post2 section, I think it will make more sense.

Hrm. That doesn’t quite work as I use _index pages as a way to work around bundles. I guess I’ll wait to use perma links until I can fix my bundle hack :slight_smile: