-
-
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
.GetTerms returns empty set for pages with _build: render: never in 0.123 #12044
Comments
I'm not sure about this; it's a complex question involving many use cases. For discussion... Build options: when should a page's terms contribute to a taxonomy object?
The cells that I've filled in are, to me, obvious choices. If we were starting from scratch, I'd say do this:
The behavior with v0.123.0 is different than v0.122.0, but I think it might be better. For example, v0.123.0 fixed #10694 which (obviously) leaked information. |
I think that there should be an option to make it work as I describe it: that is, no separate pages are generated, but you can work with these pages, use tags, etc. In our case, we have lists of updates (which usually are just a sentence, and there is no need to make it into a page, but we list them on some pages, and we need them as separate instances, so that we could do various lists, depending on some sort of filters). So, we need an ability to render it, but not in separate pages (as it would create about a one hundred thousand unneeded pages). |
Rethinking my "if we we'e starting from scratch" scenario, I think it should look like this instead:
EDIT: And that's how it works in v0.123.0, so I think we got it right. The behavior in v0.122.0 is below, which was not great:
I think you already have that with:
The documentation for
Perhaps we could clarify this, something like:
|
@TiGR Given my previous comment, I think we should close this. |
Yes, I think it works |
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. |
Say, you have some pages with this code:
That is, you don't need separate files for these files, but you render these pages elsewhere. However, when you get that page, you get weird results. First up,
.GetTerms "tags"
for example returns empty set.Example site. In hugo 0.122 this site shows the following:
In hugo 0.123:
So, it can't list tags. Also, in some a bit more complex environment (can't yet reproduce in simple site), when I dump subpage from a variable I get not
Page(/path/to/page)
, butPage(nil)
for pages having_build: render: never
.The text was updated successfully, but these errors were encountered: