We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Description
The tags path /tags/ introduced in 709a407 does not work on a project using a flat content layout with no docs/ nor blog/ dirs.
/tags/
docs/
blog/
Example flat layout:
content/ ├── foo │ └── _index.md ├── bar │ └── _index.md └── _index.md
With the root _index.md file featuring the following header to set the docs/ behavior to all sub-dirs:
_index.md
--- cascade: type: docs ---
PS: This layout is used due using just the docs/ behavior with no intention of introducing the blog/ behavior.
Steps To Reproduce
hugo serve
Expected Behavior
The /tags/ page should feature a single centered header as defined by 0.9.3.
Actual Behavior
The /tags/ page features just the default layout with a duplicated Tags header.
Screenshots
Environment
The text was updated successfully, but these errors were encountered:
This behavior is caused by the cascade.type affecting even Hugo taxonomy and term page kinds.
cascade.type
So excluding those kinds from being set to docs type in the root _index.md file fixes the issue:
docs
--- cascade: - _target: path: "/**" kind: "{home,page,section}" type: "docs" ---
@imfing I'm not sure whether this layout corner case is worthy of mentioning in the Hextra docs...
Sorry, something went wrong.
No branches or pull requests
Description
The tags path
/tags/
introduced in 709a407 does not work on a project using a flat content layout with nodocs/
norblog/
dirs.Example flat layout:
With the root
_index.md
file featuring the following header to set thedocs/
behavior to all sub-dirs:PS: This layout is used due using just the
docs/
behavior with no intention of introducing theblog/
behavior.Steps To Reproduce
hugo serve
Expected Behavior
The
/tags/
page should feature a single centered header as defined by 0.9.3.Actual Behavior
The
/tags/
page features just the default layout with a duplicated Tags header.Screenshots
Environment
The text was updated successfully, but these errors were encountered: