7
0
Fork 0

Style: nieuws op hoofdpagina anders opgemaakt

This commit is contained in:
Michael Boelen 2023-05-07 14:04:54 +02:00
parent c387dd1df3
commit 5ba59ec785

View file

@ -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>&nbsp; <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 }}