Fix filter on range

This commit is contained in:
Justin Nguyen 2020-12-22 10:23:26 -08:00
parent 0871dee992
commit d6be608202

View File

@ -20,17 +20,16 @@
<div class="sections">
{{ range .Site.Menus.main }}
{{ if in (first 2 .URL) "#" }}
<div id="{{ .Identifier }}" class="posts section">
<h1 class="section-header">{{ .Name }}</h1>
{{ if ne .Identifier $.Site.Params.contentTypeName }}
{{ if in (first 2 .URL) "#" }}
<div class="post">
{{ $section := path.Join "homepage" .Identifier }}
{{ with $.Site.GetPage $section }}
{{ partial "section.html" . }}
{{ end }}
</div>
{{ end }}
{{ else }}
{{ range $paginator.Pages }}
<div class="post on-list">
@ -89,6 +88,7 @@
</div>
<hr class="section-separator">
{{ end }}
{{ end }}
</div>
{{ end }}