Add past events
This commit is contained in:
parent
62ada17675
commit
bd59013800
4 changed files with 205 additions and 95 deletions
|
|
@ -1,17 +1,20 @@
|
|||
<div class="upcoming">
|
||||
{{ $sites := where site.RegularPages "Section" "upcoming" }}
|
||||
{{ range sort $sites ".Params.ConcertDate" }}
|
||||
<div class="upcoming-entry">
|
||||
<p class="concert-date">
|
||||
{{ $t := time.AsTime .Params.ConcertDate }}
|
||||
{{ $format1 := "Monday 2 Jan 2006" }}
|
||||
{{ $format2 := "Jan 2006" }}
|
||||
{{ $sites := where site.RegularPages "Section" "upcoming" }}
|
||||
{{ if gt (len $sites) 0 }}
|
||||
<h2>Évènements à venir</h2>
|
||||
<div class="upcoming">
|
||||
{{ range sort $sites ".Params.ConcertDate" }}
|
||||
<div class="upcoming-entry">
|
||||
<p class="concert-date">
|
||||
{{ $t := time.AsTime .Params.ConcertDate }}
|
||||
{{ $format1 := "Monday 2 Jan 2006" }}
|
||||
{{ $format2 := "Jan 2006" }}
|
||||
|
||||
|
||||
<!-- TODO: Try format1 -->
|
||||
{{ time.Format $format2 $t | humanize }}
|
||||
</p>
|
||||
<h2>{{ .LinkTitle }}</h2>
|
||||
</div>
|
||||
{{ end }}
|
||||
</div>
|
||||
<!-- TODO: Try format1 -->
|
||||
{{ time.Format $format2 $t | humanize }}
|
||||
</p>
|
||||
<h2>{{ .LinkTitle }}</h2>
|
||||
</div>
|
||||
{{ end }}
|
||||
</div>
|
||||
{{ end }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue