Waar mogelijk de time-tag toegepast

This commit is contained in:
Michael Boelen 2023-05-24 00:54:58 +02:00
parent 85be78cff4
commit 6659fc3378
4 changed files with 7 additions and 7 deletions

View file

@ -25,9 +25,9 @@
{{ $reviewdate := $reviewdate.AddDate 0 0 .Params.review.period | time.Format "2006-01-02" }}
<tr>
<td><a href="{{ .RelPermalink }}">{{ .Title | default .Site.Params.textNoTitle }}</a></td>
<td>{{ .Lastmod | dateFormat "2006-01-02 15:04:05" }}</td>
<td>{{ if .Params.review.last_review }}{{ .Params.review.last_review }}{{ else }}Onbekend{{ end }}</td>
<td>{{ with $reviewdate }}{{ . }}{{ end }}</td>
<td><time datetime="{{ .Lastmod | dateFormat "2006-01-02T15:04:05" }}">{{ .Lastmod | dateFormat "2006-01-02 15:04:05" }}</time></td>
<td>{{ if .Params.review.last_review }}<time datetime="{{ .Params.review.last_review | dateFormat "2006-01-02" }}">{{ .Params.review.last_review }}</time>{{ else }}Onbekend{{ end }}</td>
<td><time datetime="{{ $reviewdate | dateFormat "2006-01-02" }}">{{ $reviewdate }}</time></td>
<td>{{ with .Params.review.period }}{{ . }} dagen{{ end }}</td>
<td>
{{ if .Params.review.last_review }}
@ -71,7 +71,7 @@
{{ range where .Site.RegularPages "Params.review" "==" nil }}
<tr>
<td><a href="{{ .RelPermalink }}">{{ .Title | default .Site.Params.textNoTitle }}</a></td>
<td>{{ .Lastmod | dateFormat "2006-01-02 15:04:05" }}</td>
<td><time datetime="{{ .Lastmod | dateFormat "2006-01-02T15:04:05" }}">{{ .Lastmod | dateFormat "2006-01-02 15:04:05" }}</time></td>
<td>{{ with .File }}{{ .Lang }}{{ end }}</td>
<td>{{ with .File }}{{ .Path }}{{ end }}</td>
</tr>

View file

@ -19,7 +19,7 @@
<tbody>
{{ range first 50 $byLastMod }}
<tr>
<td>{{ .Lastmod | dateFormat "2006-01-02 15:04:05" }}</td>
<td><time datetime="{{ .Lastmod | dateFormat "2006-01-02T15:04:05" }}">{{ .Lastmod | dateFormat "2006-01-02 15:04:05" }}</time></td>
<td><a href="{{ .RelPermalink }}">{{ .Title | default .Site.Params.textNoTitle }}</a></td>
{{ if .Site.IsServer }}
<td>{{ with .File }}{{ .Lang }}{{ end }}</td>

View file

@ -27,7 +27,7 @@
<tbody>
{{ range first 20 $byLastMod }}
<tr>
<td>{{ .Lastmod | dateFormat "2006-01-02 15:04:05" }}</td>
<td><time datetime="{{ .Lastmod | dateFormat "2006-01-02T15:04:05" }}">{{ .Lastmod | dateFormat "2006-01-02 15:04:05" }}</a></td>
<td><a href="{{ .RelPermalink }}">{{ .Title }}</a></td>
{{ if .Site.IsServer }}
<td>{{ with .File }}{{ .Lang }}{{ end }}</td>

View file

@ -44,7 +44,7 @@
<p>Naast de door ons georganiseerde evenementen staat er meer op de agenda.</p>
<ul>
{{ range first 10 (where $upcoming_events "date_start" "ge" (dateFormat "2006-01-02" now)) }}
<li>{{ .date_start | dateFormat "02-01-2006" }} - <a href="/evenementen/kalender/#{{ anchorize (.date_start | dateFormat "2006-01-02") }}-{{ anchorize .name }}">{{ .name }}</a></li>
<li><time datetime="{{ .date_start | dateFormat "2006-01-02" }}">{{ .date_start | dateFormat "02-01-2006" }}</time> - <a href="/evenementen/kalender/#{{ anchorize (.date_start | dateFormat "2006-01-02") }}-{{ anchorize .name }}">{{ .name }}</a></li>
{{ end }}
</ul>
<p>&raquo; <a href="/evenementen/kalender/">Volledige evenementenkalender</a></p>