Change url structure for specific section

currently my content looks like
so each sections separated by folder

my permalink right now

My question, what if i want the /blog section’s url looks like this

but othe section still under


i got it

blog : /:title/

I’ve done essentially exactly the same by setting

  blog = "/:title"
  • my site deploys perfectly from Netlify but if I actually try to run a hugo build via CLI, I get the following error:

Error: Error building site: failed to render pages: open C:\Users\Lea Pooter\Desktop\Hugo Site Projects\cubemc-blog-rebuild\public\change-is-afoot-in-the-on-hold-and-in-store-industry…\index.html: The system cannot find the path specified.

However, if I take out my [permalinks] config, it builds perfectly. What am I missing?

I found the fix for me. Since I have a slug parameter on pages in these sections, I changed my config to

  blog = "/:slug"

and now it works!