1
Fork 0

Show recent pages on homepage

This commit is contained in:
Jake Howard 2017-04-23 12:57:33 +01:00
parent ac55aafe63
commit 1627885324

View file

@ -41,26 +41,20 @@
</section> </section>
<div class="row"> <div class="row">
{{ range first 6 (where .Data.Pages.ByDate "Kind" "page") }}
{{ if ne .Section "" }}
<div class="col-sm-6"> <div class="col-sm-6">
<section class="box special"> <section class="box special">
<span class="image featured"><img src="images/pic02.jpg" alt="" /></span> <span class="image featured"><img src="{{ .Params.image }}" /></span>
<h3>Sed lorem adipiscing</h3> <h3>{{ .Title }}</h3>
<p>Integer volutpat ante et accumsan commophasellus sed aliquam feugiat lorem aliquet ut enim rutrum phasellus iaculis accumsan dolore magna aliquam veroeros.</p> <p>{{ .Summary }}</p>
<ul class="actions"> <ul class="actions">
<li><a href="#" class="button alt">Learn More</a></li> <li><a href="{{ .Permalink }}" class="button alt">Read More</a></li>
</ul>
</section>
</div>
<div class="col-sm-6">
<section class="box special">
<span class="image featured"><img src="images/pic03.jpg" alt="" /></span>
<h3>Accumsan integer</h3>
<p>Integer volutpat ante et accumsan commophasellus sed aliquam feugiat lorem aliquet ut enim rutrum phasellus iaculis accumsan dolore magna aliquam veroeros.</p>
<ul class="actions">
<li><a href="#" class="button alt">Learn More</a></li>
</ul> </ul>
</section> </section>
</div> </div>
{{ end }}
{{ end }}
</div> </div>
</section> </section>
{{ partial "page_end.html" . }} {{ partial "page_end.html" . }}