Toon meer informatie bij nieuwsberichten en datum-formaat consistent tonen
This commit is contained in:
parent
8f27468ec5
commit
d41e46387d
|
@ -5,7 +5,7 @@
|
||||||
<li>
|
<li>
|
||||||
<a class="link" href="{{ .Permalink }}" title="{{ .Title }}">{{ .Title }}</a>
|
<a class="link" href="{{ .Permalink }}" title="{{ .Title }}">{{ .Title }}</a>
|
||||||
<hr class="hr-list">
|
<hr class="hr-list">
|
||||||
<time class="g time" datetime="{{ dateFormat "2006-01-02" .Date }}">{{ dateFormat "2006-01-02" .Date }}</time>
|
<time class="g time" datetime="{{ dateFormat "2006-01-02" .Date }}">{{ dateFormat "02-01-2006" .Date }}</time>
|
||||||
</li>
|
</li>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</ul>
|
</ul>
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
<li>
|
<li>
|
||||||
<a class="link" href="{{ .Permalink }}" title="{{ .Title }}">{{ .Title }}</a>
|
<a class="link" href="{{ .Permalink }}" title="{{ .Title }}">{{ .Title }}</a>
|
||||||
<hr class="hr-list">
|
<hr class="hr-list">
|
||||||
<time class="g time" datetime="{{ dateFormat "2006-01-02" .Date }}">{{ dateFormat "2006-01-02" .Date }}</time>
|
<time class="g time" datetime="{{ dateFormat "2006-01-02" .Date }}">{{ dateFormat "02-01-2006" .Date }}</time>
|
||||||
</li>
|
</li>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</ul>
|
</ul>
|
||||||
|
@ -29,10 +29,10 @@
|
||||||
<h2>Aankomende evenementen</h2>
|
<h2>Aankomende evenementen</h2>
|
||||||
<p>Naast de door ons georganiseerde evenementen staat er meer op de agenda. Zie de uitgebreide evenementenkalender voor meer details.</p>
|
<p>Naast de door ons georganiseerde evenementen staat er meer op de agenda. Zie de uitgebreide evenementenkalender voor meer details.</p>
|
||||||
{{ $upcoming_events := .Site.Data.evenementen.kalender }}
|
{{ $upcoming_events := .Site.Data.evenementen.kalender }}
|
||||||
{{ $upcoming_events := sort $upcoming_events ".date_start" "desc" }}
|
{{ $upcoming_events := sort $upcoming_events ".date_start" "asc" }}
|
||||||
<ul>
|
<ul>
|
||||||
{{ range first 10 $upcoming_events }}
|
{{ range first 10 $upcoming_events }}
|
||||||
<li>{{ .date_start }} - {{ .name }}</li>
|
<li>{{ .date_start | dateFormat "02-01-2006" }} - {{ .name }}</li>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
|
|
|
@ -2,8 +2,13 @@
|
||||||
|
|
||||||
{{ $icon_size := 20 }}
|
{{ $icon_size := 20 }}
|
||||||
{{ $text := .Content }}
|
{{ $text := .Content }}
|
||||||
|
{{ $date := .Date.Format "02-01-2006" }}
|
||||||
|
{{ $lastmod := .Lastmod.Format "02-01-2006" }}
|
||||||
|
<small>Gepubliceerd op {{ $date }} door {{ .Params.author | default .Site.Params.author }}.{{ if gt .Params.lastmod .Params.date }} Artikel bijgewerkt op {{ $lastmod }}{{ end }}</small>
|
||||||
|
<section>
|
||||||
{{ $text }}
|
{{ $text }}
|
||||||
|
{{ if .Params.signed_by }}<em>{{ .Params.signed_by }}</em>{{ end }}
|
||||||
|
</section>
|
||||||
{{ if .Params.related_members }}
|
{{ if .Params.related_members }}
|
||||||
{{ .Scratch.Set "related_members" .Params.related_members }}
|
{{ .Scratch.Set "related_members" .Params.related_members }}
|
||||||
{{ partial "show-related-members.html" . }}
|
{{ partial "show-related-members.html" . }}
|
||||||
|
|
Reference in a new issue