Can you remove the section from the URL and use just filename?

I know you can override URLs with front-matter, and that works exactly how it should. But to save manually adding the URL line to every .md file, can you somehow set the section name (via config) to generate with just the filename?

1 Like

This should work:

    post = "/:filename"


1 Like

I had tried this and it didn’t seem to work. But I just needed to manually delete the publishdir folder and rebuild. Thank you.

1 Like

@bep an interesting thing that happens here is if you have a content piece named, then you end up with two root/ entries in your sitemap. The manual fix is to rename to something else.