diff options
author | Alexandros <onedrawingperday@users.noreply.github.com> | 2019-08-20 12:21:51 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-20 12:21:51 +0300 |
commit | 52f0b93627391ba6b61d03f8e682082765ebaba3 (patch) | |
tree | f3d2221d2a3366ad3430bd99016034dc07705a76 | |
parent | d43b33fe16c5dafe8a3517705bf1112a081ced51 (diff) |
Fix for Hugo 0.57.x
This will fix your theme for https://github.com/gohugoio/hugoThemes/issues/682
-rw-r--r-- | layouts/partials/main.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/partials/main.html b/layouts/partials/main.html index 488a6a2..ba97bd2 100644 --- a/layouts/partials/main.html +++ b/layouts/partials/main.html @@ -1,7 +1,7 @@ <section id="main"> <!-- Page Content --> -{{ range $index, $element := where (.Data.Pages.ByParam "sec") "Section" "in" .Site.Params.mainSections }} +{{ range $index, $element := where (.Site.RegularPages.ByParam "sec") "Section" "in" .Site.Params.mainSections }} {{ if modBool $index 2 }} <div class="content-section-a"> {{ else }} |