forked from laurens/fediversity_website
Waar mogelijk de time-tag toegepast
This commit is contained in:
parent
85be78cff4
commit
6659fc3378
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>» <a href="/evenementen/kalender/">Volledige evenementenkalender</a></p>
|
||||
|
|
Reference in a new issue