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

20 lines
665 B
HTML
Raw Normal View History

2017-04-22 23:24:13 +01:00
{{ partial "page_start.html" . }}
2017-07-10 09:33:18 +01:00
<section id="main" class="container">
{{ partial "content.html" . }}
{{ if ne .Params.hide_pages "true" }}
<div class="row">
{{ $parent := . }}
{{ $valid_pages := where .Site.Pages.ByTitle ".Parent" "!=" nil }}
2017-07-14 20:05:47 +01:00
{{ $valid_pages := where $valid_pages ".Params.hide_in_list" "!=" "true" }}
2017-07-10 09:33:18 +01:00
{{ range where $valid_pages ".Parent.UniqueID" $parent.UniqueID }}
{{ if $parent.Params.show_images }}
{{ partial "box_image.html" . }}
{{ else }}
{{ partial "box.html" . }}
2017-05-09 09:13:41 +01:00
{{ end }}
2017-07-10 09:33:18 +01:00
{{ end }}
</div>
{{ end }}
</section>
2017-04-22 23:24:13 +01:00
{{ partial "page_end.html" . }}