How to shorten URLs

Hi all,

I’m new to Hugo and I have some problem. I read documentation but still I don’t know hot to do one thing.
Assuming that I have directory called ‘posts’ (with posts inside) in my ‘content’ directory I don’t want have ‘post’ part in my url to the given article.
For example instead of having


I want to have


Is it possible to achieve in hugo or not?

You probably need to add this to your config.toml:

posts = "/:slug/"
1 Like

Yes, it works.
Thanks a lot.