has no effect, http://localhost:1313/docs/history/purity_spiral/ still applies and http://localhost:1313/purity_spiral/ doesn’t. Did I make a mistake ? url: "/custom/foo" in frontmatters work though… I just prefer the automatic way.
That only affects pages in the root section unfortunately. You can target the sections directly instead:
[permalinks]
docs = '/:filename/'
Or
[permalinks]
history = '/:filename/'
Note that I tested it and the latter, despite targeting the subsection (history), will change the permalinks for all parent section (docs) pages as well. This may or may not be what you want.