1
Fork 0

Add list items to list page

This commit is contained in:
Jake Howard 2017-04-23 12:05:02 +01:00
parent 21f0de4bf9
commit 625f5a5d19

View file

@ -3,14 +3,28 @@
<section id="main" class="container"> <section id="main" class="container">
<header> <header>
<h2>{{ title .Title }}</h2> <h2>{{ title .Title }}</h2>
{{ if .Params.subtitle }}
<p>{{ .Params.subtitle }}</p>
{{ end }}
</header> </header>
<div class="box"> {{ if .Content }}
<span class="image featured"><img src="images/pic01.jpg" alt="" /></span> <div class="box">
{{ .Content }} {{ .Content }}
</div> </div>
{{ end }}
<div class="row">
{{ range .Pages.ByTitle }}
<div class="col-sm-6">
<section class="box special">
{{ if .Params.image }}
<span class="image featured"><img src="{{ .Params.image }}" alt="{{ .Title }} featured image" /></span>
{{ end }}
<h3>{{ title .Title }}</h3>
<p>{{ .Summary }}</p>
<ul class="actions">
<li><a href="{{ .Permalink }}" class="button alt">Read More</a></li>
</ul>
</section>
</div>
{{ end }}
</div>
</section> </section>
</div> </div>
{{ partial "page_end.html" . }} {{ partial "page_end.html" . }}