Browse Source

Implement some basic 'event_weekly' shortcode and add pages for our recurring events

pull/9/head
Frieder Griesshammer 3 months ago
parent
commit
f7311c72eb
  1. 4
      .editorconfig
  2. 15
      content/events/bitcoin_themenabend.md
  3. 15
      content/events/chaostreff.md
  4. 16
      content/events/elektronikrunde.md
  5. 13
      content/events/freifunk.md
  6. 17
      content/events/hw4f_computerausgabe.md
  7. 16
      content/events/programmierrunde.md
  8. 16
      content/events/techniksprechstunde.md
  9. 1
      content/termine.md
  10. 58
      layouts/shortcodes/event_weekly.html

4
.editorconfig

@ -12,6 +12,10 @@ trim_trailing_whitespace = true
indent_size = 4
indent_style = space
[*.html]
indent_size = 2
indent_style = space
[*.md]
indent_size = 4
indent_style = space

15
content/events/bitcoin_themenabend.md

@ -0,0 +1,15 @@
---
title: Bitcoin Themenabend
slug: bitcoin-themenabend
description: Crypto!
draft: false
showmetadates: false
showmetalinks: false
---
{{< event_weekly
weekday="Mittwoch"
interval="1"
begin="20.00"
finish="23.30"
>}}

15
content/events/chaostreff.md

@ -0,0 +1,15 @@
---
title: Chaostreff Leipzig
slug: chaostreff
description: Open Chaos!
draft: false
showmetadates: false
showmetalinks: false
aliases:
- /termine/freitag
---
{{< event_weekly
weekday="Freitag"
begin="19.00"
>}}

16
content/events/elektronikrunde.md

@ -0,0 +1,16 @@
---
title: Elektronikrunde
slug: elektronikrunde
description: Energie!
draft: false
showmetadates: false
showmetalinks: false
aliases:
- /termine/dienstag
---
{{< event_weekly
weekday="Dienstag"
begin="19.30"
finish="22.30"
>}}

13
content/events/freifunk.md

@ -0,0 +1,13 @@
---
title: Freifunk Leipzig
slug: freifunk
description: Router mit Antennen!
draft: false
showmetadates: false
showmetalinks: false
---
{{< event_weekly
weekday="Donnerstag"
begin="19.30"
>}}

17
content/events/hw4f_computerausgabe.md

@ -0,0 +1,17 @@
---
title: HW4F Computerausgabe
slug: hw4f-computerausgabe
description: Hardware!
draft: false
showmetadates: false
showmetalinks: false
aliases:
- /termine/mittwoch
---
{{< event_weekly
weekday="Mittwoch"
note="nur bei Bedarf & auf Einladung"
begin="17.00"
finish="20.00"
>}}

16
content/events/programmierrunde.md

@ -0,0 +1,16 @@
---
title: Programmierrunde
slug: programmierrunde
description: Bugs!
draft: false
showmetadates: false
showmetalinks: false
aliases:
- /termine/montag
---
{{< event_weekly
weekday="Montag"
begin="19.30"
finish="22.00"
>}}

16
content/events/techniksprechstunde.md

@ -0,0 +1,16 @@
---
title: Techniksprechstunde
slug: techniksprechstunde
description: Kaputt!
draft: false
showmetadates: false
showmetalinks: false
aliases:
- /termine/donnerstag
---
{{< event_weekly
weekday="Donnerstag"
begin="19.00"
finish="22.00"
>}}

1
content/termine.md

@ -10,7 +10,6 @@ categories:
showmetadates: false
showmetalinks: false
aliases:
- /events
- /kalender
---

58
layouts/shortcodes/event_weekly.html

@ -0,0 +1,58 @@
{{- $weekday := .Get "weekday" }}
<p></p>
<div class="purge-g">
<div class="pure-u-1-24">
</div>
<div class="pure-u-1-22">
<table class="pure-table pure-table-horizontal centered">
<thead>
<tr>
<th>
Wochentag
</th>
<th>
von
</th>
<th>
bis
</th>
</tr>
</thead>
<tbody>
<tr>
<td>
Jeden
{{ with .Get "interval" }}
{{ . }}.
{{ $weekday }}
im Monat
{{ else }}
{{ $weekday }}
{{ end }}
{{ with .Get "note" }}
<br>
<small>
({{ . }})
</small>
{{ end }}
</td>
<td>
{{ .Get "begin" }}
Uhr
</td>
<td>
{{ with .Get "finish" }}
{{ . }}
Uhr
{{ else }}
open end
{{ end }}
</td>
</tr>
</tbody>
</table>
</div>
<div class="pure-u-1-24">
</div>
</div>
<p></p>
Loading…
Cancel
Save