forked from laurens/fediversity_website
Style: nieuws op hoofdpagina anders opgemaakt
This commit is contained in:
parent
c387dd1df3
commit
5ba59ec785
|
@ -4,12 +4,15 @@
|
||||||
{{ if gt (len (where .Site.RegularPages "Section" "nieuws")) 0 }}
|
{{ if gt (len (where .Site.RegularPages "Section" "nieuws")) 0 }}
|
||||||
<h2>Laatste nieuws</h2>
|
<h2>Laatste nieuws</h2>
|
||||||
<section>
|
<section>
|
||||||
|
<ul reversed class="list">
|
||||||
{{ range (first 3 (where .Site.RegularPages "Section" "nieuws").ByDate.Reverse) }}
|
{{ range (first 3 (where .Site.RegularPages "Section" "nieuws").ByDate.Reverse) }}
|
||||||
<p>
|
<li>
|
||||||
<time class="g time" datetime="{{ dateFormat "2006-01-02" .Date }}">{{ dateFormat "2006-01-02" .Date }}</time>
|
<a class="link" href="{{ .Permalink }}" title="{{ .Title }}">{{ .Title }}</a>
|
||||||
<a href="{{ .Permalink }}">{{ .Title }}</a>
|
<hr class="hr-list">
|
||||||
<p>
|
<time class="g time" datetime="{{ dateFormat "2006-01-02" .Date }}">{{ dateFormat "2006-01-02" .Date }}</time>
|
||||||
|
</li>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
</ul>
|
||||||
</section>
|
</section>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
|
Reference in a new issue