1
Fork 0
theorangeone.net-legacy/layouts/_default/list.html

21 lines
809 B
HTML
Raw Normal View History

2017-04-22 23:24:13 +01:00
{{ partial "page_start.html" . }}
2017-07-24 09:19:35 +01:00
<section id="main" class="container">
{{ partial "content.html" . }}
{{ if ne .Params.hide_pages "true" }}
<div class="row">
{{ $parent := . }}
2017-09-15 08:44:12 +01:00
{{ $sorted_pages := sort .Site.Pages (default "Title" .Params.sort_by) (default "asc" .Params.sort_order)}}
{{ $valid_pages := where $sorted_pages ".Parent" "!=" nil }}
2017-07-24 09:19:35 +01:00
{{ $valid_pages := where $valid_pages ".Params.hide_in_list" "!=" "true" }}
{{ range where $valid_pages ".Parent.UniqueID" $parent.UniqueID }}
{{ if $parent.Params.show_images }}
{{ partial "box_image.html" . }}
{{ else }}
{{ partial "box.html" . }}
{{ end }}
2017-05-09 09:13:41 +01:00
{{ end }}
2017-07-24 09:19:35 +01:00
</div>
{{ end }}
</section>
2017-04-22 23:24:13 +01:00
{{ partial "page_end.html" . }}