-
Notifications
You must be signed in to change notification settings - Fork 117
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
Build fails on hugo v0.123: pagination not supported for this page: kind: "page" #169
Comments
I am encountering the same issue.. :( |
Also encountering this issue. Found a nice blog post about it at https://www.irisclasson.com/2024/02/21/hugo-error-calling-paginator/. For now I made the following change to override the layout. diff --git a/layouts/partials/head/meta.html b/layouts/partials/head/meta.html
index 691f114..cb9c888 100644
--- a/layouts/partials/head/meta.html
+++ b/layouts/partials/head/meta.html
@@ -92,18 +92,6 @@
<!-- Article Specific Tags -->
<!-- To make sure this renders only in the article page, we check the section -->
{{ if eq .Section "posts" }}
-<!-- Pagination meta tags for list pages only -->
-{{ $paginator := .Paginate (where .Pages "Type" "posts") }}
-{{ if $paginator }}
- <link rel="first" href="{{ $paginator.First.URL }}" />
- <link rel="last" href="{{ $paginator.Last.URL }}" />
- {{ if $paginator.HasPrev }}
- <link rel="prev" href="{{ $paginator.Prev.URL }}" />
- {{end }}
- {{ if $paginator.HasNext }}
- <link rel="next" href="{{ $paginator.Next.URL }}" />
- {{end }}
-{{end }}
<meta property="og:type" content="article" />
<meta property="article:publisher" content="{{ .Site.Params.facebook_url }}" /> |
There's an issue with the upstream theme on Hugo v0.123 that prevents the site from building. - lukeorth/poison#169
downgrade due to lukeorth/poison#169
I have no clue neither if this bug is really from Anyway I cloned also AmazingRise/hugo-theme-diary#177 (comment) seems to be a fix, don't really know if this applies well to poison though |
I applied this fix and it compiles successfully. Replace line 94 in layouts/partials/head/meta.html: |
There's an issue with the upstream theme on Hugo v0.123 that prevents the site from building. - lukeorth/poison#169
There's an issue with the upstream theme on Hugo v0.123 that prevents the site from building. - lukeorth/poison#169
patch proposed by: FLopriore issue: lukeorth#169
@FLopriore it seems to fix it, could you propose a PR to the repo? |
Yes, I do it right now |
It fixes issue lukeorth#169: Build fails on hugo v0.123: pagination not supported for this page: kind: "page". See kLiHz's comment in AmazingRise/hugo-theme-diary#177.
Thanks, everyone! Sorry for being MIA the past several weeks. PR is merged. 👍 |
Thank you! Updated my website to the latest version and it's working well. |
Poison site does not build with hugo 0.123.0 and 0.123.1, but builds with v0.122.0
Steps to reproduce:
Outputs:
The relevant code in
layouts/partials/head/meta.html
:Deleting this code gets the build to complete.
gohugoio/hugo#11954, merged into hugo 0.123.0 might be related. My understanding of hugo is limited and as there was no issue reported on the hugo repo yet, it could be a poison issue.
The text was updated successfully, but these errors were encountered: