-
-
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
Hugo 0.30.2 doesn't see subsections with _index.md only in them #3989
Comments
Thanks for the report; with the change log from 0.29 I find this strange, but your issue report is good, so I will look at this shortly. |
Do you have a public site source showing this issue? |
Yes. Here's my site and the corresponding theme. You can see the issue when you go to triathlon.paluchowski.com/races -- there are 4 items on the list, this one built with 0.29 -- but when you build it with 0.30.2 the top 2 items (with the gray headers) will be missing. These are the sections with |
Oh, wait, now I found the issue. The commit 6a30874: if p.PublishDate.IsZero() {
p.PublishDate = p.Date
} The two items I have on the This is obviously not what I want nor expected to happen :) If I wanted a piece of content to be published in the future, I would've used the Can we get the old behavior back? |
See #3977 |
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. |
Hugo 0.30.2 (haven't tested .0 nor .1 but it did work correctly up to 0.29) seems to be ignoring non-first-level sections which only have
_index.md
in them, both in.Sections
andwhere .Site.Pages "Kind" "section"
queries.Ie. for the following structure:
the query
where .Site.Pages "Kind" "section"
will only return:a
andb
-- because they're first-leveld
-- because it containssome-content.md
while
c
will be missing.The text was updated successfully, but these errors were encountered: