1
Fork 0

Remove double page wrapper

This commit is contained in:
Jake Howard 2017-07-10 09:33:18 +01:00
parent 38a5488da4
commit e5c62c99b1
Signed by: jake
GPG key ID: 57AFB45680EDD477
2 changed files with 18 additions and 22 deletions

View file

@ -1,20 +1,18 @@
{{ partial "page_start.html" . }}
<div id="page-wrapper">
<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 }}
{{ range where $valid_pages ".Parent.UniqueID" $parent.UniqueID }}
{{ if $parent.Params.show_images }}
{{ partial "box_image.html" . }}
{{ else }}
{{ partial "box.html" . }}
{{ end }}
<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 }}
{{ range where $valid_pages ".Parent.UniqueID" $parent.UniqueID }}
{{ if $parent.Params.show_images }}
{{ partial "box_image.html" . }}
{{ else }}
{{ partial "box.html" . }}
{{ end }}
</div>
{{ end }}
</section>
</div>
{{ end }}
</div>
{{ end }}
</section>
{{ partial "page_end.html" . }}

View file

@ -1,7 +1,5 @@
{{ partial "page_start.html" . }}
<div id="page-wrapper">
<section id="main" class="container">
{{ partial "content.html" . }}
</section>
</div>
<section id="main" class="container">
{{ partial "content.html" . }}
</section>
{{ partial "page_end.html" . }}