forked from jakub/jakubb-hugo
use localized date for further events
This commit is contained in:
parent
6b221f66f5
commit
758ccf59f5
@ -189,7 +189,7 @@
|
|||||||
{{ range sort (where .Site.RegularPages "Section" "events") "Params.start_date" "asc" }}
|
{{ range sort (where .Site.RegularPages "Section" "events") "Params.start_date" "asc" }}
|
||||||
{{ $eventDate := time.AsTime .Params.start_date }}
|
{{ $eventDate := time.AsTime .Params.start_date }}
|
||||||
{{ if and ( or ($eventDate.After $startDate) ($eventDate.Equal $startDate)) ($eventDate.Before $endDate) }}
|
{{ if and ( or ($eventDate.After $startDate) ($eventDate.Equal $startDate)) ($eventDate.Before $endDate) }}
|
||||||
<li>{{$eventDate.Format "Jan 2, 2006" }} - <a href="{{ .RelPermalink }}">{{.Title}}</a></li>
|
<li>{{$eventDate | time.Format ":date_medium" }} - <a href="{{ .RelPermalink }}">{{.Title}}</a></li>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</ul>
|
</ul>
|
||||||
|
Loading…
Reference in New Issue
Block a user