Add list items to list page
This commit is contained in:
parent
21f0de4bf9
commit
625f5a5d19
1 changed files with 21 additions and 7 deletions
|
@ -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" . }}
|
||||||
|
|
Loading…
Reference in a new issue