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 · 13 comments · Fixed by #372
Closed

Hugo 0.57.0 shows only Posts on the homepage #371

fu-sen opened this issue Aug 14, 2019 · 13 comments · Fixed by #372
Labels
bug Something isn't working
Milestone

Comments

@fu-sen
Copy link
Contributor

fu-sen 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
Copy link
Owner

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
Copy link
Contributor Author

fu-sen 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
Copy link
Contributor Author

fu-sen 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
Copy link
Owner

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

@jhchou
Copy link

jhchou commented May 1, 2020

Has this bug recurred? I just updated Hugo to v0.69.2 and re-installed tranquilpeak, and I'm having the home page showing only Posts.

I double-checked and my /layouts/index.html does contain the updated:

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

Per the suggestion above, I uninstalled Hugo and re-installed back to Hugo v0.56.3, and it works properly again.

Anyone else have a problem with v0.69.2 and this problem recurring?

@kakawait
Copy link
Owner

kakawait commented May 1, 2020

@jhchou I'll try on monday. I don't have enough stuff atm to check more.
But if you could test previous release (0.68.x) it will help me. If it's working on 0.68.x please open a new ticket I'll fix it asap (with dedicated release)

@jhchou
Copy link

jhchou commented May 1, 2020 via email

@fu-sen
Copy link
Contributor Author

fu-sen commented May 1, 2020

@jhchou It was a Hugo spec change, and the theme had to be reflected.
Follow what happened with @kakawait 's action on this page.

@kakawait
Copy link
Owner

kakawait commented May 2, 2020

@jhchou It was a Hugo spec change, and the theme had to be reflected.
Follow what happened with @kakawait 's action on this page.

But I tough what I delivered for 0.4.7 fixes the problem.

@fu-sen you have the same issue?

@kakawait
Copy link
Owner

kakawait commented May 2, 2020

@jhchou your "post" folder is "posts" or "post"?

@jhchou
Copy link

jhchou commented May 2, 2020 via email

@fu-sen
Copy link
Contributor Author

fu-sen commented May 2, 2020

@kakawait No. I cloned the latest theme, but I'm blogging fine.
This looks like a @jhchou personal issue.

@kakawait
Copy link
Owner

kakawait commented May 3, 2020

@jhchou As same as @fu-sen I don't have any issue.
Do you have any sample? Could you please upload your src project and with builded folder? (because i'm not expert of R/Blogdown, I may use directly builded version)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants