1
Fork 0

Add title to recent pages

This commit is contained in:
Jake Howard 2017-04-23 13:07:32 +01:00
parent 1627885324
commit f1f87aaddd

View file

@ -40,21 +40,24 @@
</div>
</section>
<div class="row">
{{ range first 6 (where .Data.Pages.ByDate "Kind" "page") }}
{{ if ne .Section "" }}
<div class="col-sm-6">
<section class="box special">
<span class="image featured"><img src="{{ .Params.image }}" /></span>
<h3>{{ .Title }}</h3>
<p>{{ .Summary }}</p>
<ul class="actions">
<li><a href="{{ .Permalink }}" class="button alt">Read More</a></li>
</ul>
</section>
</div>
<div class="box special">
<h2>Recent Posts</h2>
<div class="row">
{{ range first 6 (where .Data.Pages.ByDate "Kind" "page") }}
{{ if ne .Section "" }}
<div class="col-sm-6">
<section class="box special">
<span class="image featured"><img src="{{ .Params.image }}" /></span>
<h3>{{ .Title }}</h3>
<p>{{ .Summary }}</p>
<ul class="actions">
<li><a href="{{ .Permalink }}" class="button alt">Read More</a></li>
</ul>
</section>
</div>
{{ end }}
{{ end }}
{{ end }}
</div>
</div>
</div>
</section>
{{ partial "page_end.html" . }}