1
Fork 0

Move content to partial

This commit is contained in:
Jake Howard 2017-06-25 11:31:05 +01:00
parent 35f332c968
commit 4b9b865f2c
Signed by: jake
GPG key ID: 57AFB45680EDD477
4 changed files with 17 additions and 35 deletions

View file

@ -1,17 +1,7 @@
{{ partial "page_start.html" . }} {{ partial "page_start.html" . }}
<div id="page-wrapper"> <div id="page-wrapper">
<section id="main" class="container"> <section id="main" class="container">
<header> {{ partial "content.html" . }}
<h2>{{ title .Title }}</h2>
</header>
{{ if .Content }}
<div class="box">
{{ if .Params.image }}
<span class="image featured main" data-image="{{ .Params.image }}"></span>
{{ end }}
{{ .Content }}
</div>
{{ end }}
{{ if ne .Params.hide_pages "true" }} {{ if ne .Params.hide_pages "true" }}
<div class="row"> <div class="row">
{{ $parent := . }} {{ $parent := . }}

View file

@ -1,18 +1,7 @@
{{ partial "page_start.html" . }} {{ partial "page_start.html" . }}
<div id="page-wrapper"> <div id="page-wrapper">
<section id="main" class="container"> <section id="main" class="container">
<header> {{ partial "content.html" . }}
<h2>{{ title .Title }}</h2>
{{ if .Params.subtitle }}
<p>{{ markdownify .Params.subtitle }}</p>
{{ end }}
</header>
<div class="box">
{{ if .Params.image }}
<span class="image featured main" data-image="{{ .Params.image }}"></span>
{{ end }}
{{ .Content }}
</div>
</section> </section>
</div> </div>
{{ partial "page_end.html" . }} {{ partial "page_end.html" . }}

View file

@ -0,0 +1,14 @@
<header>
<h2>{{ title .Title }}</h2>
{{ if .Params.subtitle }}
<p>{{ markdownify .Params.subtitle }}</p>
{{ end }}
</header>
{{ if .Content }}
<div class="box">
{{ if .Params.image }}
<span class="image featured main" data-image="{{ .Params.image }}"></span>
{{ end }}
{{ .Content }}
</div>
{{ end }}

View file

@ -1,18 +1,7 @@
{{ partial "page_start.html" . }} {{ partial "page_start.html" . }}
<div id="page-wrapper"> <div id="page-wrapper">
<section id="main" class="container"> <section id="main" class="container">
<header> {{ partial "content.html" . }}
<h2>{{ title .Title }}</h2>
{{ if .Params.subtitle }}
<p>{{ markdownify .Params.subtitle }}</p>
{{ end }}
</header>
<div class="box">
{{ if .Params.image }}
<span class="image featured main" data-image="{{ .Params.image }}"></span>
{{ end }}
{{ .Content }}
</div>
<div class="box"> <div class="box">
<ul class="actions fir"> <ul class="actions fir">
{{ if .Params.download_url }} {{ if .Params.download_url }}