-
-
Notifications
You must be signed in to change notification settings - Fork 7.6k
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
Unify baseof vs single/section lookup order #3154
Comments
The current docs probably not up to date re. the latest changes to the section: So, given your example above it would be:
Now, there is an open issue from a user claiming the above doesn't work perfectly for themes, but that is another story. And I don't understand the "TYPE-baseof is counterintuitive since this is the only template that takes this approach to the lookup". The TYPE.html is pretty much Hugo standard, and since a base template must live in a pair relationship with another template, some kind of naming scheme had to be invented. And we already "voted on this" on the forum. So, unless you come up with some much better reasons, we're not making breaking changes like this that will, to quote the American president, "CREATE TREMENDOUS AMOUNT OF WORK!!". :-) |
That said; even if we HAVE lots of options, we don't have to document every variant (we have some other legacy variants floating around in the code). This will be even more obvious when output types come into the mix ... |
Agreed. I will do my best to make this clearer in the docs. I wonder how many sites are implementing multiple And just to clarify, your example above is the most up-to-date, correct?
A visual representation of my thoughts: |
Yes, but it is not in the real doc. |
@bep Let me know how I can help facilitate this in the new docs. Closing. Cheers. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
See #3116
Current docs show the following for
baseof.html
templates using aposts
section as an example:/layouts/section/post-baseof.html
/themes/<THEME>/layouts/section/post-baseof.html
/layouts/section/baseof.html
/themes/<THEME>/layouts/section/baseof.html
/layouts/_default/post-baseof.html
/themes/<THEME>/layouts/_default/post-baseof.html
/layouts/_default/baseof.html
/themes/<THEME>/layouts/_default/baseof.html
<TYPE>-baseof
deviates from other lookups:post-baseof.html
)_default/
.Proposed change (using the above
post
example):/layouts/post/baseof.html
/themes/<THEME>/layouts/post/baseof.html
/layouts/section/baseof.html
/themes/<THEME>/layouts/section/baseof.html
/layouts/_default/baseof.html
/themes/<THEME>/layouts/_default/baseof.html
Unlike #3116, however, this is a more drastic change than adding an item to the lookup, so I hesitate in the light of breaking changes, obviously.
Further consideration include the other list templates (e.g., taxonomies), which according to documentation only inherit from the
_default/baseof.html
layout?The text was updated successfully, but these errors were encountered: