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 }}
|
||||
<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>
|
||||
<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 }}
|
||||
|
||||
|
|
Reference in a new issue