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 }}
<h2>Laatste nieuws</h2>
<section>
<ul reversed class="list">
{{ range (first 3 (where .Site.RegularPages "Section" "nieuws").ByDate.Reverse) }}
<p>
<time class="g time" datetime="{{ dateFormat "2006-01-02" .Date }}">{{ dateFormat "2006-01-02" .Date }}</time>&nbsp;
<a href="{{ .Permalink }}">{{ .Title }}</a>
<p>
{{ end }}
<li>
<a class="link" href="{{ .Permalink }}" title="{{ .Title }}">{{ .Title }}</a>
<hr class="hr-list">
<time class="g time" datetime="{{ dateFormat "2006-01-02" .Date }}">{{ dateFormat "2006-01-02" .Date }}</time>
</li>
{{ end }}
</ul>
</section>
{{ end }}