Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Explain that you cannot create content pages under taxonomy directories #1578

Closed
jmooring opened this issue Nov 25, 2021 · 2 comments
Closed

Comments

@jmooring
Copy link
Member

If you have a taxonomy named "tags" you must not do this:

hugo new content/tags/foo.md

The only files you should create under a taxonomy directory are section pages to contain taxonomy or term metadata. For example:

content/tags/
├── foo/
│   └── _index.md
└── _index.md

Not quite sure where to put this in the docs.

Reference: gohugoio/hugo#7975

@davidsneighbour
Copy link
Contributor

Can you add that hugo new content/tags/foo is allowed if there is an archetype foo/_index.md with frontmatter? I am pretty sure that I have that somewhere in use, but can't find it right now.

@jmooring
Copy link
Member Author

jmooring commented Nov 7, 2023

This will be addressed in #2307

@jmooring jmooring closed this as completed Nov 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants