Why are categories and tags folders appearing in the public folder, and why do I need to manually save content files for them to appear?

Whenever I delete my public folder and run the hugo command again, the public folder is recreated. However, it contains categories and tags folders, which don’t exist in my content folder. Also, my content data (such as blog posts or custom pages) is not appearing in the public folder unless I manually open the _index.md file in my content folder and press Ctrl + S to save it. Without doing this, the files do not get added to the public folder.

Why is this happening? Is this normal behavior, or is there something wrong with my setup?

The tags and categories directories correspond to the default taxonomies.

Sharing a video isn’t helpful. Sharing your project repository is.

See Requesting Help.

Sorry, I can’t share my repo. Is there any way you can help me troubleshoot my issue without access to it?

Regarding the category and tag issue, I was able to resolve it by adding this to my hugo.toml file:

[taxonomies]
disableKinds = ["taxonomy", "term"]

However, I’m still not seeing my blog posts and other content in the public folder unless I manually save each file.

Here’s the structure of my content folder:

content/en/index.md
content/en/blog/_index.md
content/en/blog/my-blogs.md
mv content/index.md content/_index.md
2 Likes

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