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

http://someurlbase/posts/post1

I want to have

http://someurlbase/post1

Is it possible to achieve in hugo or not?

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

[permalinks]
posts = "/:slug/"
1 Like

Yes, it works.
Thanks a lot.