Commit c18fa947 authored by betz's avatar betz

congress everywhere gallery, better events date display

parent faa19552
Pipeline #36141472 passed with stages
in 31 seconds
......@@ -9,6 +9,7 @@ location: "HSBXL"
eventtype: ""
price: "Free"
image: "ccc.jpg"
series: "congress_everywhere"
---
Like all congress editions, HSBXL is open to watch Congress streams together.
......
......@@ -10,5 +10,9 @@ image: "ccc.jpg"
"Hackers all over the world are organizing events to bring the congress closer to home – Congress Everywhere: Allow those unable to attend the Congress in Hamburg to celebrate their own Hackcenter experience, watch the streams, participate via twitter or chats, drink Tschunk, cook and have a good time."
- From https://events.ccc.de/congress/2016/wiki/Congress_Everywhere
## Upcoming Congress Everywhere
{{< events when="upcoming" series="congress_everywhere" >}}
\ No newline at end of file
# Upcoming Congress Everywhere
{{< events when="upcoming" series="congress_everywhere" >}}
# Photo gallery
{{< gallery "images" >}}
\ No newline at end of file
This diff is collapsed.
......@@ -6,7 +6,7 @@ title: "Coremeeting 11"
location: "HSBXL"
eventtype: "Meeting"
price: ""
image: "coremeeting.png"
series: "coremeeting"
---
Our monthly CoreMeeting. Discussing main issues like the bookkeeping.
......
......@@ -6,7 +6,7 @@ title: "Coremeeting 12"
location: "HSBXL"
eventtype: "Meeting"
price: ""
image: "coremeeting.png"
series: "coremeeting"
---
Our monthly CoreMeeting. Discussing main issues like the bookkeeping.
---
linktitle: "Coremeeting"
title: "Coremeeting"
location: "HSBXL"
eventtype: ""
price: "Free"
---
Our monthly CoreMeeting. Discussing main issues like the bookkeeping.
## Upcoming Coremeetings
{{< events when="upcoming" series="coremeeting" >}}
## Past Coremeetings
{{< events when="past" series="coremeeting" >}}
\ No newline at end of file
......@@ -7,21 +7,18 @@
<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 ge .Params.startdate (now.Format "2006-01-02") }}
<li><a href="{{ .Permalink }}">{{ .Params.startdate | dateFormat "Mon 2 Jan 2006"}}: {{ .Params.linktitle }}</a></li>
<li><a href="{{ .Permalink }}">{{ .Params.startdate | dateFormat "Mon 2 Jan 2006"}}{{ if isset .Params "enddate" }} till {{ .Params.enddate | dateFormat "Mon 2 Jan 2006"}}{{ end }}: {{ .Params.linktitle }}</a></li>
{{ end }}
{{ end }}
{{ end }}
{{ else }}
{{ if isset .Params "startdate" }}
{{ if ge .Params.startdate (now.Format "2006-01-02") }}
<li><a href="{{ .Permalink }}">{{ .Params.startdate | dateFormat "Mon 2 Jan 2006"}}: {{ .Params.linktitle }}</a></li>
<li><a href="{{ .Permalink }}">{{ .Params.startdate | dateFormat "Mon 2 Jan 2006"}}{{ if isset .Params "enddate" }} till {{ .Params.enddate | dateFormat "Mon 2 Jan 2006"}}{{ end }}: {{ .Params.linktitle }}</a></li>
{{ end }}
{{ end }}
......@@ -29,10 +26,11 @@
{{ end }}
{{ end }}
</ul>
</div>
{{ end }}
{{ if or (eq $when "past") }}
<div class="events">
<ul>
......@@ -44,7 +42,7 @@
{{ if eq .Params.series $series}}
{{ if isset .Params "startdate" }}
{{ if le .Params.startdate (now.Format "2006-01-02") }}
<li><a href="{{ .Permalink }}">{{ .Params.startdate | dateFormat "Mon 2 Jan 2006"}}: {{ .Params.linktitle }}</a></li>
<li><a href="{{ .Permalink }}">{{ .Params.startdate | dateFormat "Mon 2 Jan 2006"}}{{ if isset .Params "enddate" }} till {{ .Params.enddate | dateFormat "Mon 2 Jan 2006"}}{{ end }}: {{ .Params.linktitle }}</a></li>
{{ end }}
{{ end }}
{{ end }}
......@@ -52,7 +50,7 @@
{{ else }}
{{ if isset .Params "startdate" }}
{{ if le .Params.startdate (now.Format "2006-01-02") }}
<li><a href="{{ .Permalink }}">{{ .Params.startdate | dateFormat "Mon 2 Jan 2006"}}: {{ .Params.linktitle }}</a></li>
<li><a href="{{ .Permalink }}">{{ .Params.startdate | dateFormat "Mon 2 Jan 2006"}}{{ if isset .Params "enddate" }} till {{ .Params.enddate | dateFormat "Mon 2 Jan 2006"}}{{ end }}: {{ .Params.linktitle }}</a></li>
{{ end }}
{{ end }}
......
<div class="gallery">
{{ $directory := .Get 0}}
{{ $resources := .Page.Resources.Match ( print $directory "/*") }}
{{ $resources := .Page.Resources.ByType "image" }}
{{ range $resources }}
{{ with . }}
{{ $image200x := (.Resize "100x") }}
......@@ -11,4 +11,6 @@
{{ end }}
{{ end }}
</div>
\ No newline at end of file
</div>
erer
\ 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