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" . }} {{ partial "page_start.html" . }}
<div id="page-wrapper"> <section id="main" class="container">
<section id="main" class="container"> {{ partial "content.html" . }}
{{ partial "content.html" . }} {{ if ne .Params.hide_pages "true" }}
{{ if ne .Params.hide_pages "true" }} <div class="row">
<div class="row"> {{ $parent := . }}
{{ $parent := . }} {{ $valid_pages := where .Site.Pages.ByTitle ".Parent" "!=" nil }}
{{ $valid_pages := where .Site.Pages.ByTitle ".Parent" "!=" nil }} {{ range where $valid_pages ".Parent.UniqueID" $parent.UniqueID }}
{{ range where $valid_pages ".Parent.UniqueID" $parent.UniqueID }} {{ if $parent.Params.show_images }}
{{ if $parent.Params.show_images }} {{ partial "box_image.html" . }}
{{ partial "box_image.html" . }} {{ else }}
{{ else }} {{ partial "box.html" . }}
{{ partial "box.html" . }}
{{ end }}
{{ end }} {{ end }}
</div> {{ end }}
{{ end }} </div>
</section> {{ end }}
</div> </section>
{{ partial "page_end.html" . }} {{ partial "page_end.html" . }}

View file

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