Skip to content

Commit

Permalink
Update for upcoming Hugo v0.58 breaking change
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan Hersam committed Aug 19, 2019
1 parent 83f0a78 commit 89e9097
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions layouts/_default/list.html
Expand Up @@ -9,10 +9,10 @@
<h1 class="archive-title">{{ .Title }} Archive</h1>
</header>

{{ range where .Data.Pages "Section" "post" }}
{{ range where site.RegularPages "Type" "in" site.Params.mainSections }}
{{ partial "content.html" . }}
{{ end }}

</div><!-- #content -->
</div><!-- #primary -->
{{ partial "sidebar.html" . }}
Expand Down
4 changes: 2 additions & 2 deletions layouts/index.html
Expand Up @@ -5,10 +5,10 @@
<div id="primary" class="content-area">
<div id="content" class="site-content" role="main">

{{ range first 10 (where .Data.Pages "Section" "post") }}
{{ range first 10 (where site.RegularPages "Type" "in" site.Params.mainSections) }}
{{ partial "content.html" . }}
{{ end }}

</div><!-- #content -->
</div><!-- #primary -->
{{ partial "sidebar.html" . }}
Expand Down

0 comments on commit 89e9097

Please sign in to comment.