Home: Rework structure

This commit is contained in:
jtbx 2023-10-17 22:07:39 +02:00
commit 93b4246cd1
13 changed files with 11 additions and 10 deletions

View file

@ -0,0 +1,8 @@
---
title: "Visit Us"
date: 2022-11-20T09:03:20-08:00
draft: false
headless: true
---
TODO: "Komm vorbei" (Open Chaos, Liste der wiederkehrenden Events im Wiki)

View file

@ -0,0 +1,8 @@
---
title: "Termine"
date: 2022-11-20T09:03:20-08:00
draft: false
headless: true
---
TODO: Termine (next 5 events or full calendar?)

View file

@ -0,0 +1,8 @@
---
title: "Gruppen"
date: 2022-11-20T09:03:20-08:00
draft: false
headless: true
---
TODO: Gruppen (CTF team, CMS, freifunk, etc.)

View file

@ -0,0 +1,17 @@
---
title: "Kontakt"
date: 2022-11-20T09:03:20-08:00
draft: false
headless: true
---
TODO: Karte, Kontaktdaten
- {{< fa envelope >}} Mailingsliste Hamburg: [talk](https://www.hamburg.ccc.de/mailman/listinfo/talk)
- {{< fa envelope >}} E-Mail an den CCC Hamburg: <mail@hamburg.ccc.de>
- {{< fa envelope >}} Verwaltung des CCC Hamburg: <buero@hamburg.ccc.de>
- {{< fa brands mastodon >}} Fediverse: [@ccchh@chaos.social](https://chaos.social/@ccchh)
- {{< fa comments >}} Internet Relay Chat: [hackint.eu](https://webirc.hackint.org/#irc://irc.hackint.org/#ccchh?nick=) [#ccchh](ircs://hackint.eu/ccchh)
- {{< fa comments >}} Matrix IRC Bridge: [#ccchh:hackint.org](https://matrix.to/#/#ccchh:hackint.org)
TODO: How to have "Interwebs & E-Mails" only once for home-Onepager and here?

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

View file

@ -0,0 +1,29 @@
---
title: "Freunde & Familie"
date: 2022-11-20T09:03:20-08:00
draft: false
headless: true
resources:
- src: cryptoparty-300x100.png
params:
url: https://cryptoparty-hamburg.de
- src: ffhhlogo_neu.png
params:
url: https://hamburg.freifunk.net/
- src: fux_logo.png
params:
url: https://www.fux-eg.org/
- src: fiff.png
params:
url: https://www.fiff.de/
- src: hbgu.png
params:
url: https://www.stop-watching-hamburg.de/
- src: frappant.png
params:
url: https://frappant.org/
- src: gaengeviertel.png
params:
url: https://das-gaengeviertel.info/
---

View file

@ -23,16 +23,17 @@
</div>
{{- end }}
{{- $home_sections := .Site.GetPage "/home" }}
{{- range sort ($home_sections.Resources.Match "*.md") ".Name" }}
{{- $home := .Site.GetPage "/home" }}
{{- range sort ($home.Resources.ByType "page") "File.Path" "asc" }}
<div class="section">
<h2>{{ .Title }}</h2>
{{ .Content -}}
{{- $sec := .CurrentSection }}
{{- with .Params.Resources }}
<div class="flex-grid">
{{- range . }}
{{- $img := $home_sections.Resources.GetMatch (printf "%s" .src) }}
{{- $img := $sec.Resources.GetMatch (printf "*/%s" .src) }}
<div class="img-link"><a href="{{ .params.url }}"><img src="{{ $img.Permalink }}" class="box-image" alt=""></a></div>
{{- end }}
</div>