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