Skip to content
This repository has been archived by the owner on Apr 5, 2022. It is now read-only.

Commit

Permalink
Fixed Hugo 0.57 breaking change (#71)
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentTam authored and pacollins committed Aug 18, 2019
1 parent 58c2de9 commit afbf3cc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions exampleSite/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ pluralizeListTitles = false
disableLanguages = [""]

[params]
mainSections = ["blog", "post"]
# Loads CSS and JavaScript files. The variable is an array so that you can load
# multiple/additional files if necessary. The standard theme files can be loaded
# by adding the value, "default". Default includes the add-on.css and and-on.js.
Expand Down
2 changes: 1 addition & 1 deletion layouts/_default/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<div id="wrapper">
{{ partial "site-intro" . }}
<main id="site-main">
{{ $paginator := .Paginate (where .Data.Pages "Type" "post") }}
{{ $paginator := .Paginate (where site.RegularPages "Type" "in" site.Params.mainSections) }}
{{ range $paginator.Pages }}
{{ .Render "content-list" }}
{{ end }}
Expand Down

0 comments on commit afbf3cc

Please sign in to comment.