Fix filter on range
This commit is contained in:
parent
0871dee992
commit
d6be608202
@ -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 }}
|
||||
|
Loading…
x
Reference in New Issue
Block a user