Home: Rework structure
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 17 KiB |
Before Width: | Height: | Size: 6.7 KiB After Width: | Height: | Size: 6.7 KiB |
Before Width: | Height: | Size: 3.1 KiB After Width: | Height: | Size: 3.1 KiB |
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 2.8 KiB After Width: | Height: | Size: 2.8 KiB |
Before Width: | Height: | Size: 8.3 KiB After Width: | Height: | Size: 8.3 KiB |
Before Width: | Height: | Size: 2.7 KiB After Width: | Height: | Size: 2.7 KiB |
|
@ -4,25 +4,25 @@ date: 2022-11-20T09:03:20-08:00
|
||||||
draft: false
|
draft: false
|
||||||
headless: true
|
headless: true
|
||||||
resources:
|
resources:
|
||||||
- src: images/cryptoparty-300x100.png
|
- src: cryptoparty-300x100.png
|
||||||
params:
|
params:
|
||||||
url: https://cryptoparty-hamburg.de
|
url: https://cryptoparty-hamburg.de
|
||||||
- src: images/ffhhlogo_neu.png
|
- src: ffhhlogo_neu.png
|
||||||
params:
|
params:
|
||||||
url: https://hamburg.freifunk.net/
|
url: https://hamburg.freifunk.net/
|
||||||
- src: images/fux_logo.png
|
- src: fux_logo.png
|
||||||
params:
|
params:
|
||||||
url: https://www.fux-eg.org/
|
url: https://www.fux-eg.org/
|
||||||
- src: images/fiff.png
|
- src: fiff.png
|
||||||
params:
|
params:
|
||||||
url: https://www.fiff.de/
|
url: https://www.fiff.de/
|
||||||
- src: images/hbgu.png
|
- src: hbgu.png
|
||||||
params:
|
params:
|
||||||
url: https://www.stop-watching-hamburg.de/
|
url: https://www.stop-watching-hamburg.de/
|
||||||
- src: images/frappant.png
|
- src: frappant.png
|
||||||
params:
|
params:
|
||||||
url: https://frappant.org/
|
url: https://frappant.org/
|
||||||
- src: images/gaengeviertel.png
|
- src: gaengeviertel.png
|
||||||
params:
|
params:
|
||||||
url: https://das-gaengeviertel.info/
|
url: https://das-gaengeviertel.info/
|
||||||
|
|
|
@ -23,16 +23,17 @@
|
||||||
</div>
|
</div>
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
{{- $home_sections := .Site.GetPage "/home" }}
|
{{- $home := .Site.GetPage "/home" }}
|
||||||
{{- range sort ($home_sections.Resources.Match "*.md") ".Name" }}
|
{{- range sort ($home.Resources.ByType "page") "File.Path" "asc" }}
|
||||||
<div class="section">
|
<div class="section">
|
||||||
<h2>{{ .Title }}</h2>
|
<h2>{{ .Title }}</h2>
|
||||||
{{ .Content -}}
|
{{ .Content -}}
|
||||||
|
|
||||||
|
{{- $sec := .CurrentSection }}
|
||||||
{{- with .Params.Resources }}
|
{{- with .Params.Resources }}
|
||||||
<div class="flex-grid">
|
<div class="flex-grid">
|
||||||
{{- range . }}
|
{{- 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>
|
<div class="img-link"><a href="{{ .params.url }}"><img src="{{ $img.Permalink }}" class="box-image" alt=""></a></div>
|
||||||
{{- end }}
|
{{- end }}
|
||||||
</div>
|
</div>
|
||||||
|
|