HUGO

Content/foo.md gets shadowed by content/foo/

I’m wondering if this is intended behaviour or is there something I am missing.
I did “hugo new foo.md”, expecting a “foo.html”, instead I can access the content/foo.md at /foo/.
But then, when you add foo/bar.md, /foo/ would be the list-view and not the page-view of foo.md.
So then foo.md becomes a useless file? Unaccessible?

Is there something I am missing?

This is the expected, default behavior.
https://gohugo.io/content-management/urls/#pretty-urls

Run hugo --path-warnings to detect duplicate target paths.

1 Like

Allright, I’ll keep that in mind and just not do it then!
Thank you!

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.