Skip to content

Commit

Permalink
Fixes breaking change in Hugo 0.57
Browse files Browse the repository at this point in the history
  • Loading branch information
AngeloStavrow committed Aug 27, 2019
1 parent 75f84b4 commit a824342
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion layouts/_default/list.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{{ partial "header.html" . }}
<h2>{{ .Title }}</h2>
<div id="content">
{{ range $index, $page := (.Paginate (where .Data.Pages "Type" "post")).Pages }}
{{ range $index, $page := (.Paginate (where .Site.RegularPages "Type" "post")).Pages }}
{{ if ne $index 0 }}
{{ end }}
{{ .Render "li" }}
Expand Down
2 changes: 1 addition & 1 deletion layouts/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<!-- Content goes here -->
<div id="content">
{{ range $index, $page := (.Paginate (where (where .Data.Pages "Type" "post") ".Params.hidden" "!=" "true" )).Pages }}
{{ range $index, $page := (.Paginate (where (where .Site.RegularPages "Type" "post") ".Params.hidden" "!=" "true" )).Pages }}
{{ if ne $index 0 }}
{{ end }}
{{ .Render "li" }}
Expand Down
2 changes: 1 addition & 1 deletion layouts/index.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
{{ with .OutputFormats.Get "RSS" }}
{{ printf "<atom:link href=%q rel=\"self\" type=%q />" .Permalink .MediaType | safeHTML }}
{{ end }}
{{ range .Pages }}
{{ range .Site.RegularPages }}
<item>
<title>{{ .Title }}</title>
<link>{{ .Permalink }}</link>
Expand Down

0 comments on commit a824342

Please # to comment.