Revert a change to this file, which broke a bunch of pages.

This commit is contained in:
mtail 2018-10-05 18:01:11 -07:00
parent e704d68356
commit 85c571ec86
1 changed files with 12 additions and 7 deletions

View File

@ -8,7 +8,11 @@
<div class="section-index">
<div class="row">
{{ range .Page.Pages }}
{{ $pages := (where .Site.Pages "Section" .Section).ByWeight }}
{{ $parent := .Page }}
{{ range $pages }}
{{ if eq .Parent $parent }}
<div class="col-xs-12 col-sm-6 col-xl-4 entry">
<h5>
<a href="{{ .Permalink }}">{{- if .Params.icon -}}<i class="page_icon">
@ -17,6 +21,7 @@
<p>{{ .Description }}</p>
</div>
{{ end }}
{{ end }}
</div>
</div>