Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/cdeck3r/OneDly-Theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandros <onedrawingperday@users.noreply.github.com>2019-08-20 12:21:51 +0300
committerGitHub <noreply@github.com>2019-08-20 12:21:51 +0300
commit52f0b93627391ba6b61d03f8e682082765ebaba3 (patch)
treef3d2221d2a3366ad3430bd99016034dc07705a76
parentd43b33fe16c5dafe8a3517705bf1112a081ced51 (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.html2
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 }}