Skip to content

Commit 619e075

Browse files
committed
add event layout
1 parent d5ef703 commit 619e075

10 files changed

Lines changed: 96 additions & 0 deletions

content/events/2025-04-14-iCODE_city-ferienprogramm.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
title: "iCODE_MS | iCODE_city Ferienprogramm"
3+
type: "event"
34
date: 2025-04-14
45
eventdatestart: 2025-04-14
56
eventdateend: 2025-04-17

content/events/2025-04-29-iCODE_MS-junge-tech-kalinen.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
title: "iCodeMS | Junge Tech-Kalinen"
3+
type: "event"
34
date: 2025-04-01
45
eventdate: 2025-04-29
56
location: "Digital Hub münsterLAND, Hafenweg 16, 48155 Münster"

content/events/2025-05-06-Jugend-hackt-Open-Lab.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
title: "Jugend hackt Lab: Münster | Open Lab"
3+
type: "event"
34
date: 2025-05-06
45
eventdate: 2025-05-06
56
location: "Digitallabor, Leonardo Campus 6a, 48149 Münster"

content/events/2025-05-13-iCODE_MS-junge-tech-kalinen.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
title: "iCODE_MS | Junge Tech-Kalinen"
3+
type: "event"
34
date: 2025-05-01
45
eventdate: 2025-05-13
56
location: "Digital Hub münsterLAND, Hafenweg 16, 48155 Münster"

content/events/2025-05-20-Jugend-hackt-Workshop-TurtleStitch.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
title: "Jugend hackt Lab: Münster | Workshop: Einführung in TurtleStitch"
3+
type: "event"
34
date: 2025-05-01
45
eventdate: 2025-05-20
56
location: "Digitallabor, Leonardo Campus 6a, 48149 Münster"

content/events/2025-06-17-Jugend-hackt-Workshop-tba.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
title: "Jugend hackt Lab: Münster | Workshop: tba"
3+
type: "event"
34
date: 2025-06-17
45
eventdate: 2025-06-17
56
location: "Digitallabor, Leonardo Campus 6a, 48149 Münster"

content/events/2025-07-14-iCodeMS-iCODE_nature-Feriencamp.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
title: "iCODE_MS | iCODE_nature Feriencamp"
3+
type: "event"
34
date: 2025-05-01 #publish date
45
eventdatestart: 2025-07-14
56
eventdateend: 2025-07-18

content/events/2025-08-22-iCodeMS-Hackathon.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
title: "iCODE_MS | Hackathon"
3+
type: "event"
34
date: 2025-05-01 #publish date
45
eventdatestart: 2025-08-22
56
eventdateend: 2025-08-25

content/events/2025-10-11-codeweek2025.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
title: "Code Week 2025"
3+
type: "event"
34
date: 2025-05-01 #publish date
45
eventdatestart: 2025-10-11
56
eventdateend: 2025-10-26

layouts/event/single.html

Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
{{ define "title" }}
2+
<title>
3+
{{ .Title }} - {{ strings.FirstUpper .Section }} - {{ .Site.Title }}
4+
</title>
5+
{{ end }} {{ define "head" }} {{ range .AlternativeOutputFormats -}}
6+
<link
7+
rel="{{ .Rel }}"
8+
type="{{ .MediaType.Type }}"
9+
href="{{ .Permalink | safeURL }}"
10+
/>
11+
{{ end -}} {{ with .Params.subtitle }}<meta description="{{.}}" />{{ end }}
12+
<meta property="og:title" content="{{ .Title }}" />
13+
<meta property="og:type" content="article" />
14+
<meta property="og:url" content="{{ .Permalink }}" />
15+
<meta property="og:image" content='/files/{{ trim .Params.img_header "/"}}' />
16+
{{ with .Params.subtitle }}
17+
<meta property="og:description" content="{{.}}" />
18+
<meta name="description" content="{{.}}" />
19+
{{ end }} {{ end }} {{ define "main" }}
20+
<main>
21+
<article class="l__project">
22+
<div class="container">
23+
<div class="row">
24+
<h1 class="col col-12 col-md-10 offset-md-1">{{ .Title }}</h1>
25+
{{ with .Params.subtitle }}
26+
<p class="l__project__subtitle col col-12 col-md-10 offset-md-1">
27+
{{.}}
28+
</p>
29+
{{ end }}
30+
</div>
31+
</div>
32+
33+
{{ if .Params.img_header }}
34+
<div class="container l__project__headerimg">
35+
<div class="row">
36+
<div class="col col-12">
37+
<figure class="license">
38+
<img src="/files/{{.Params.img_header}}" alt="" />
39+
{{ with .Params.img_license }}
40+
<figcaption>{{ . }}</figcaption>
41+
{{ end }}
42+
</figure>
43+
</div>
44+
</div>
45+
</div>
46+
{{ end }}
47+
48+
<div class="container">
49+
<div class="row">
50+
<aside
51+
class="order-2 col col-12 col-sm-10 col-md-3 col-lg-2 offset-lg-1"
52+
>
53+
{{ with .Params.eventdate }}
54+
<p>
55+
<span class="bold">Datum</span><br />{{ . | time.Format "02.01.2006"
56+
}}
57+
</p>
58+
{{ else }} {{ with .Params.eventdatestart }}
59+
<p>
60+
<span class="bold">Datum</span><br />{{ . | time.Format "02.01.2006"
61+
}} – {{ $.Params.eventdateend | time.Format "02.01.2006" }}
62+
</p>
63+
{{ end }} {{ end }} {{ with .Params.location }}
64+
<p><span class="bold">Ort</span><br />{{ . }}</p>
65+
{{ end }} {{ with .Params.link }}
66+
<p>
67+
<span class="bold">Link</span><br /><a
68+
href="{{ . }}"
69+
target="_blank"
70+
>{{ . }}</a
71+
>
72+
</p>
73+
{{ end }} {{ with .Params.tags }}
74+
<p><span class="bold">Tags</span><br />{{ delimit . ", " }}</p>
75+
{{ end }}
76+
</aside>
77+
78+
<div
79+
class="l__project__content l__content col col-12 col-sm-10 col-md-8 offset-md-2 col-lg-7"
80+
>
81+
{{ .Content }}
82+
</div>
83+
</div>
84+
</div>
85+
</article>
86+
</main>
87+
{{ end }}

0 commit comments

Comments
 (0)