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

31 lines
890 B
HTML
Raw Normal View History

2017-04-22 23:24:13 +01:00
{{ partial "page_start.html" . }}
<div id="page-wrapper">
<section id="main" class="container">
<header>
<h2>{{ title .Title }}</h2>
</header>
2017-04-23 12:05:02 +01:00
{{ if .Content }}
<div class="box">
2017-05-09 09:36:14 +01:00
{{ if .Params.image }}
2017-05-09 21:04:08 +01:00
<span class="image featured main" data-image="{{ .Params.image }}"></span>
2017-05-09 09:36:14 +01:00
{{ end }}
2017-04-23 12:05:02 +01:00
{{ .Content }}
2017-06-13 09:30:46 +01:00
</div>
2017-04-23 12:05:02 +01:00
{{ end }}
2017-05-09 21:04:08 +01:00
{{ if ne .Params.hide_pages "true" }}
<div class="row">
{{ $parent := . }}
2017-06-13 09:30:46 +01:00
{{ $valid_pages := where .Site.Pages.ByTitle ".Parent" "!=" nil }}
{{ range where $valid_pages ".Parent.UniqueID" $parent.UniqueID }}
2017-05-09 21:04:08 +01:00
{{ if $parent.Params.show_images }}
{{ partial "box_image.html" . }}
{{ else }}
{{ partial "box.html" . }}
{{ end }}
2017-05-09 09:13:41 +01:00
{{ end }}
2017-05-09 21:04:08 +01:00
</div>
{{ end }}
2017-04-22 23:24:13 +01:00
</section>
</div>
{{ partial "page_end.html" . }}