Commit 8d29e63e authored by betz's avatar betz

show (all day) on events shortcode

parent 56d87b19
......@@ -20,23 +20,23 @@ Eight 'Bitdays' of hackatons, workshops and talks.
We end our week with the notorious [Bytenight](/bytenight)!
# Friday January 25th
{{< events series="byteweek2019" when="2019-01-25" showtime="true" >}}
{{< events series="byteweek2019" when="2019-01-25" showtime="true" showallday="true" >}}
# Saturday January 26th
{{< events series="byteweek2019" when="2019-01-26" showtime="true" >}}
{{< events series="byteweek2019" when="2019-01-26" showtime="true" showallday="true" >}}
# Sunday January 27th
{{< events series="byteweek2019" when="2019-01-27" showtime="true" >}}
{{< events series="byteweek2019" when="2019-01-27" showtime="true" showallday="true" >}}
# Monday January 28th
{{< events series="byteweek2019" when="2019-01-28" showtime="true" >}}
{{< events series="byteweek2019" when="2019-01-28" showtime="true" showallday="true" >}}
# Tuesday January 29th
{{< events series="byteweek2019" when="2019-01-29" showtime="true" >}}
{{< events series="byteweek2019" when="2019-01-29" showtime="true" showallday="true" >}}
# Wednesday January 30th
{{< events series="byteweek2019" when="2019-01-30" showtime="true" >}}
{{< events series="byteweek2019" when="2019-01-30" showtime="true" showallday="true" >}}
# Thursday January 31th
{{< events series="byteweek2019" when="2019-01-31" showtime="true" >}}
{{< events series="byteweek2019" when="2019-01-31" showtime="true" showallday="true" >}}
# Friday February 1st
{{< events series="byteweek2019" when="2019-02-01" showtime="true" >}}
{{< events series="byteweek2019" when="2019-02-01" showtime="true" showallday="true" >}}
# Saturday February 2nd
{{< events series="byteweek2019" when="2019-02-02" showtime="true" >}}
{{< events series="byteweek2019" when="2019-02-02" showtime="true" showallday="true" >}}
# Call for participation
If you want to have a talk, workshop or hackaton,
send a mail to **contact@hsbxl.be** with your proposal.
......
......@@ -3,6 +3,7 @@
{{ $startpage := .Get "startpage"}}
{{ $t := (time $when) }}
{{ $showtime := .Get "showtime"}}
{{ $showallday := .Get "showallday"}}
{{ if eq $when "" }}
<div class="events">
......@@ -106,7 +107,7 @@
{{ if ne .Params.start "true"}}
{{ if isset .Params "startdate" }}
{{ if and ( ge $when .Params.startdate) (le $when .Params.enddate) (ne .Params.start "true") }}
<li>{{ if eq $showtime "true"}}[{{ .Params.starttime }}]{{ end }} <a href="{{ .Permalink }}">{{ .Params.linktitle }}</a></li>
<li>{{ if eq $showtime "true"}}[{{ .Params.starttime }}]{{ end }} <a href="{{ .Permalink }}">{{ .Params.linktitle }}</a> {{ if eq $showallday "true"}}(All day){{ end }}</li>
{{ end }}
{{ end }}
{{ end }}
......@@ -116,7 +117,7 @@
{{ if isset .Params "startdate" }}
{{ if and ( ge $when .Params.startdate) (le $when .Params.enddate) (ne .Params.start "true") }}
<li>{{ if eq $showtime "true"}}[{{ .Params.starttime }}]{{ end }} <a href="{{ .Permalink }}">{{ .Params.startdate | dateFormat "Mon 02 Jan 2006"}}{{ if isset .Params "enddate" }} till {{ .Params.enddate | dateFormat "Mon 2 Jan 2006"}}{{ end }}: {{ .Params.linktitle }}</a></li>
<li>{{ if eq $showtime "true"}}[{{ .Params.starttime }}]{{ end }} <a href="{{ .Permalink }}">{{ .Params.startdate | dateFormat "Mon 02 Jan 2006"}}{{ if isset .Params "enddate" }} till {{ .Params.enddate | dateFormat "Mon 2 Jan 2006"}}{{ end }}: {{ .Params.linktitle }}</a> {{ if eq $showallday "true"}}(All day){{ end }}</li>
{{ end }}
{{ end }}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment