Skip to content
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.57.0 shows only Posts on the homepage #371

Closed
fu-sen opened this issue Aug 14, 2019 · 4 comments · Fixed by #372

Comments

@fu-sen
Copy link

commented Aug 14, 2019

Hugo 0.57.0 has been released. If this is used, the home page is "Posts" only:

スクリーンショット 2019-08-14 20 38 19

This has something to do with Hugo 0.57.0 spec change, but it may be temporary due to a bug in Hugo.
Hugo 0.56.3 lists correctly. This is a temporary workaround.

@kakawait

This comment has been minimized.

Copy link
Owner

commented Aug 14, 2019

Thank for reporting. Currently I'm in vacancies so I'll not be able to do something before 2 weeks. I strongly recommend you to downgrade Hugo until i find a fix

@fu-sen

This comment has been minimized.

Copy link
Author

commented Aug 15, 2019

I can edit the theme file to some extent. The measures in the above issue work well.
This could be a (temporary) solution.

/layouts/index.html:

This:

{{ $paginator := .Paginate (where .Data.Pages "Type" "post") }}

Translates to:

{{ $paginator := .Paginate (where .Site.RegularPages "Type" "post") }}

However, this has an impact on several themes and will require discussion of this issue for some time.

@fu-sen

This comment has been minimized.

Copy link
Author

commented Aug 15, 2019

Thank you. I immediately reflected my blog https://balloon.gq/ , It works in the way we expect.

<meta name="generator" content="Hugo 0.57.0 with theme Tranquilpeak 0.4.7-BETA">
@kakawait

This comment has been minimized.

Copy link
Owner

commented Aug 15, 2019

Glad to help. Same for https://tranquilpeak.kakawait.com just updated with 0.57.0 and 0.4.7-BETA

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.