Move content to partial
This commit is contained in:
parent
35f332c968
commit
4b9b865f2c
4 changed files with 17 additions and 35 deletions
|
@ -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 := . }}
|
||||||
|
|
|
@ -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" . }}
|
||||||
|
|
14
layouts/partials/content.html
Normal file
14
layouts/partials/content.html
Normal 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 }}
|
|
@ -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 }}
|
||||||
|
|
Loading…
Reference in a new issue