Skip to content

Commit

Permalink
Fix pagination broken since HUGO v0.123
Browse files Browse the repository at this point in the history
patch proposed by: FLopriore
issue: lukeorth#169
  • Loading branch information
ctmbl committed Mar 18, 2024
1 parent 8dffa65 commit f14a7a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layouts/partials/head/meta.html
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@

<!-- Article Specific Tags -->
<!-- To make sure this renders only in the article page, we check the section -->
{{ if eq .Section "posts" }}
{{ if and (eq .Section "posts") (.Page.IsNode) }}
<!-- Pagination meta tags for list pages only -->
{{ $paginator := .Paginate (where .Pages "Type" "posts") }}
{{ if $paginator }}
Expand Down

0 comments on commit f14a7a5

Please sign in to comment.