To clean up my project, I have deleted the public folder. When I now run hugo it just creates the XML files for the rss feeds but not the actual HTML files with the content.
I have checked and all my files are set to draft = false
Are there any other reasons why it would not build the HTML files?
But if you want more than guesses as answers, you should provide more information. For example, your config data. Or even better, a link to your Github repository.
baseURL in the repo is set to baseURL = 'https://sunnybug.hopto.org/wiki/public'. Why add “public”? That look wrong. You should set it to what the actual address of the site is.
Setting baseURL to “localhost” is also wrong/unneeded. When running hugo server that is done automatically.
yes, when I clone the repo and start again it all shows well. But if I then make changes to any of the .md files, none of them are reflected in the HTML files afterwards. Hugo sever just prompts this
Watching for config changes in /Users/max/Documents/hugo2/wiki/hugo.toml, /Users/max/Documents/hugo2/wiki/go.mod
Start building sites …
hugo v0.161.1+extended+withdeploy darwin/arm64 BuildDate=2026-04-29T13:56:01Z VendorInfo=Homebrew
WARN found no layout file for "html" for kind "section": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.
WARN found no layout file for "html" for kind "taxonomy": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.
WARN found no layout file for "html" for kind "page": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.
WARN found no layout file for "html" for kind "home": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.
│ EN
──────────────────┼────
Pages │ 8
Paginator pages │ 0
Non-page files │ 0
Static files │ 0
Processed images │ 0
Aliases │ 0
Cleaned │ 0
Built in 19 ms
Environment: "development"
Serving pages from disk
Running in Fast Render Mode. For full rebuilds on change: hugo server --disableFastRender
Web Server is available at http://localhost:1313/wiki/public/ (bind address 127.0.0.1)
Press Ctrl+C to stop
following @frjo: committing public and I add resources is usually not needed unless you have a lot of content there and you handle that special in your build scripts.
# remove the public - contains a lot of old garbage
rm -rf public
# you might want to delete the resources folder, too
# minimal content, won't impact performance, always fresh state after clone
rm -rf resources