Commit f422a52c authored by betz's avatar betz

events shortcode option date filter

parent 5c7a4007
Pipeline #39389756 passed with stages
in 1 minute and 21 seconds
......@@ -20,8 +20,24 @@ Eight 'Bitdays' of hackatons, workshops and talks.
We end our week with the notorious [Bytenight](/bytenight)!
# This years' Bitdays
{{< events series="byteweek2019" >}}
## Friday January 25th
{{< events series="byteweek2019" when="2019-01-25" >}}
## Saturday January 26th
{{< events series="byteweek2019" when="2019-01-26" >}}
## Sunday January 27th
{{< events series="byteweek2019" when="2019-01-27" >}}
## Monday January 28th
{{< events series="byteweek2019" when="2019-01-28" >}}
## Tuesday January 29th
{{< events series="byteweek2019" when="2019-01-29" >}}
## Wednesday January 30th
{{< events series="byteweek2019" when="2019-01-30" >}}
## Thursday January 31th
{{< events series="byteweek2019" when="2019-01-31" >}}
## Friday February 1st
{{< events series="byteweek2019" when="2019-02-01" >}}
## Saturday February 2nd
{{< events series="byteweek2019" when="2019-02-02" >}}
# Call for participation
If you want to have a talk, workshop or hackaton,
send a mail to **contact@hsbxl.be** with your proposal.
......
This diff is collapsed.
---
startdate: 2019-02-01
starttime: "13:00"
enddate: 2019-02-01
linktitle: "Blockstack Workshop"
title: "Blockstack Workshop"
location: "HSBXL"
......
---
startdate: 2019-02-01
starttime: "18:00"
enddate: 2019-02-01
linktitle: "Pre-FOSDEM warmup with Kubernetes"
title: "Pre-FOSDEM warmup with Kubernetes"
location: "HSBXL"
......
---
startdate: 2019-01-29
starttime: "19:00"
enddate: 2019-01-29
linktitle: "Introduction to LDAP"
title: "Introduction to LDAP"
location: "HSBXL"
......
---
startdate: 2019-01-26
starttime: "14:00"
enddate: 2019-01-26
allday: true
linktitle: "Setting up Odoo and writing your first app"
title: "Setting up Odoo and writing your first app"
......
---
startdate: 2019-01-27
starttime: "15:00"
enddate: 2019-01-27
linktitle: "Pentesting: hacking companies & governments like a pro"
title: "Pentesting: hacking companies & governments like a pro"
location: "HSBXL"
......
---
startdate: 2019-01-31
starttime: "14:00"
enddate: 2019-01-31
linktitle: "Amateur radio for hackers"
title: "Amateur radio for hackers"
location: "HSBXL"
......
---
startdate: 2019-01-27
starttime: "14:00"
enddate: 2019-01-27
allday: true
linktitle: "Web scraping with Selenium and Python"
title: "Web scraping with Selenium and Python"
......
---
startdate: 2019-01-30
starttime: "19:00"
enddate: 2019-01-30
linktitle: "Stompboxin’, DIY fuzzboxes for bass and guitar"
title: "Stompboxin’, DIY fuzzboxes for bass and guitar"
location: "HSBXL"
......
{{ $when := .Get "when"}}
{{ $series := .Get "series"}}
{{ $t := (time $when) }}
{{ if eq $when "" }}
<div class="events">
......@@ -18,10 +18,7 @@
{{ end }}
</ul>
</div>
{{ end }}
{{ if or (eq $when "upcoming") }}
{{ else if eq $when "upcoming" }}
<div class="events">
<ul>
{{ range $.Site.RegularPages.ByParam "startdate" }}
......@@ -46,11 +43,7 @@
{{ end }}
</ul>
</div>
{{ end }}
{{ if or (eq $when "past") }}
{{ else if eq $when "past" }}
<div class="events">
<ul>
{{ range ($.Site.RegularPages.ByParam "startdate").Reverse }}
......@@ -77,6 +70,37 @@
{{ end }}
{{ end }}
</ul>
</div>
{{ else }}
<div class="events">
<ul>
{{ range $.Site.RegularPages.ByParam "startdate" }}
{{ if or (eq .Type "events") (eq .Type "techtuesday") }}
{{ if ne $series "all" }}
{{ if eq .Params.series $series}}
{{ if isset .Params "startdate" }}
{{ if and ( ge $when .Params.startdate) (le $when .Params.enddate) (ne .Params.start "true") }}
<li><a href="{{ .Permalink }}">{{ .Params.linktitle }}</a></li>
{{ end }}
{{ end }}
{{ end }}
{{ else }}
{{ if isset .Params "startdate" }}
{{ if and ( ge $when .Params.startdate) (le $when .Params.enddate) (ne .Params.start "true") }}
<li><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>
{{ end }}
{{ end }}
{{ end }}
{{ end }}
{{ end }}
</ul>
</div>
{{ end }}
\ No newline at end of file
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