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>
|
</section>
|
||||||
|
|
||||||
<div class="row">
|
<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="images/pic02.jpg" alt="" /></span>
|
<div class="col-sm-6">
|
||||||
<h3>Sed lorem adipiscing</h3>
|
<section class="box special">
|
||||||
<p>Integer volutpat ante et accumsan commophasellus sed aliquam feugiat lorem aliquet ut enim rutrum phasellus iaculis accumsan dolore magna aliquam veroeros.</p>
|
<span class="image featured"><img src="{{ .Params.image }}" /></span>
|
||||||
<ul class="actions">
|
<h3>{{ .Title }}</h3>
|
||||||
<li><a href="#" class="button alt">Learn More</a></li>
|
<p>{{ .Summary }}</p>
|
||||||
</ul>
|
<ul class="actions">
|
||||||
</section>
|
<li><a href="{{ .Permalink }}" class="button alt">Read More</a></li>
|
||||||
</div>
|
</ul>
|
||||||
<div class="col-sm-6">
|
</section>
|
||||||
<section class="box special">
|
</div>
|
||||||
<span class="image featured"><img src="images/pic03.jpg" alt="" /></span>
|
{{ end }}
|
||||||
<h3>Accumsan integer</h3>
|
{{ end }}
|
||||||
<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>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
{{ partial "page_end.html" . }}
|
{{ partial "page_end.html" . }}
|
||||||
|
|
Loading…
Reference in a new issue