-
-
Notifications
You must be signed in to change notification settings - Fork 245
Page lists broken in various theme demos in 0.57.0 #678
Comments
I'm theme creator and I'm part of theme that was breaks during update to 0.57 as you can see from my issue kakawait/hugo-tranquilpeak-theme#371 Moreover even after reading release note and both issues. I'm not totally sure how to fix the thing to get the old behavior. I tried many thing with and without |
@kakawait the old behaviour = |
@bep The theme author is using pagination on the home page. When changing line 12 of Same with: I also tried changing line 13 |
This:
Translates to:
|
I will revisit these problems sometime tomorrow. You can maybe hold off on updating the theme site until the dust has settled. |
@bep Sure but me and @digitalcraftsman want to encourage theme authors to use We've been doing the above for a while now with theme submissions and we plan to put it in writing for #668 Anyway for the time being I suggest that we wait until/if these issues are addressed before we update the Hugo version that the themes showcase uses when deployed on Netlify. |
This solution works for me:
However it only works after setting the main section explicitly in the theme parameters:
|
Thanks for reporting this. We shouldn’t need to manually specify the mainSections in the config since it’s supposed to be an internal parameter. cc: @bep |
And I'm sorry about this noise. We would not have done it if we didn't think it was really the best. We could probably have dropped this The motivation for this is maybe not obvious, but having the |
My bad I don't know why but I was editing
I just have to check what to do with
|
What you can do is something like:
|
I don't know if it can help but that thing work with |
@bep I just tested the latest commit gohugoio/hugo@8ddc8a7 and I confirm that the logic of mainSections is fixed. To the theme authors who appear to reference this issue in various commits, please note that the recommended way to create lists for the homepage and other sections for Hugo themes is the use of mainSections to ensure that users have flexibility. The above fix will be released in the next version of Hugo in the coming days, so please make the following changes to your themes: @kakawait Please change line12 of @wilsandbrink Please change lines 4-5 of Also you may want to track issue #668 because soon we will update the theme guidelines for this repo. |
@onedrawingperday Sorry but I really don't understand why should I apply that change on I mean However if I apply your change (if We could at least change
to
but I still sure that type should come from |
@kakawait Sorry I am busy and I haven't looked at it properly but you are right. The
|
This issue will continue in #682 due to the sheer scale of it. |
Hugo 0.57 breaks mainSections logic and how the home section works. Switch to .Site.RegularPages for the home page paginator to restore old behavior. Fix #13 See gohugoio/hugoThemes#682, gohugoio/hugoThemes#678, gohugoio/hugo#6153
Hugo 0.57 breaks mainSections logic and how the home section works. Switch to .Site.RegularPages for the home page paginator to restore old behavior. Fix #13 See gohugoio/hugoThemes#682, gohugoio/hugoThemes#678, gohugoio/hugo#6153
This should fix the issue with Hugo's breaking changes since v0.57 as mentioned in gohugoio/hugoThemes#678. - adjusted post list for Hugo v0.57.0 Credits: @jvalecillos.
gohugoio/hugoThemes#678 (comment) .Pages and .Data.Pages become .Site.RegularPages The community is good enough to remind me to update these!! Kudos to them :)
Fix based on information found at gohugoio/hugoThemes#678
…57.0 This should fix the issue with Hugo's breaking changes since v0.57 as mentioned in gohugoio/hugoThemes#678. - adjusted post list for Hugo v0.57.0 Credits: @jvalecillos.
I am confused, I just have a link to posts now on my homepage, and nothing outlines how to fix this. Why is a breaking change added to a 0.X version, this should have increased the version to 1.X |
See #682 |
As stated in gohugoio/hugo#6153 Hugo 0.57.0 has a breaking change since now:
Also due to gohugoio/hugo#6154 now:
The above breaking changes were made for developing new features like Cascading Front Matter and will be also needed in the future.
However during local testing with Hugo 0.57.0 I noticed that plenty of theme demos currently on the showcase use
.Data.Pages
or just.Pages
to render lists (particularly on the index page) and as a result the list pages of these themes now look weird.There is already at least one issue in the wild about a broken homepage in a theme's repo.
Perhaps we should communicate this breaking change through Hugo's official twitter account?
Also what are your suggestions about affected themes and their demos?
cc: @digitalcraftsman and @bep
The text was updated successfully, but these errors were encountered: