forked from laurens/fediversity_website
Toon meer informatie bij nieuwsberichten en datum-formaat consistent tonen
This commit is contained in:
parent
8f27468ec5
commit
d41e46387d
|
@ -5,7 +5,7 @@
|
|||
<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>
|
||||
<time class="g time" datetime="{{ dateFormat "2006-01-02" .Date }}">{{ dateFormat "02-01-2006" .Date }}</time>
|
||||
</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
<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>
|
||||
<time class="g time" datetime="{{ dateFormat "2006-01-02" .Date }}">{{ dateFormat "02-01-2006" .Date }}</time>
|
||||
</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
|
@ -29,10 +29,10 @@
|
|||
<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>
|
||||
{{ $upcoming_events := .Site.Data.evenementen.kalender }}
|
||||
{{ $upcoming_events := sort $upcoming_events ".date_start" "desc" }}
|
||||
{{ $upcoming_events := sort $upcoming_events ".date_start" "asc" }}
|
||||
<ul>
|
||||
{{ range first 10 $upcoming_events }}
|
||||
<li>{{ .date_start }} - {{ .name }}</li>
|
||||
<li>{{ .date_start | dateFormat "02-01-2006" }} - {{ .name }}</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
|
||||
|
|
|
@ -2,8 +2,13 @@
|
|||
|
||||
{{ $icon_size := 20 }}
|
||||
{{ $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 }}
|
||||
|
||||
{{ if .Params.signed_by }}<em>{{ .Params.signed_by }}</em>{{ end }}
|
||||
</section>
|
||||
{{ if .Params.related_members }}
|
||||
{{ .Scratch.Set "related_members" .Params.related_members }}
|
||||
{{ partial "show-related-members.html" . }}
|
||||
|
|
Reference in a new issue