Show recent pages on homepage
This commit is contained in:
parent
ac55aafe63
commit
1627885324
1 changed files with 14 additions and 20 deletions
|
@ -41,26 +41,20 @@
|
|||
</section>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
<section class="box special">
|
||||
<span class="image featured"><img src="images/pic02.jpg" alt="" /></span>
|
||||
<h3>Sed lorem adipiscing</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>
|
||||
</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>
|
||||
</section>
|
||||
</div>
|
||||
{{ 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 }}
|
||||
</div>
|
||||
</section>
|
||||
{{ partial "page_end.html" . }}
|
||||
|
|
Loading…
Reference in a new issue