Home: Rework structure

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

View file

Before

Width:  |  Height:  |  Size: 17 KiB

After

Width:  |  Height:  |  Size: 17 KiB

View file

Before

Width:  |  Height:  |  Size: 6.7 KiB

After

Width:  |  Height:  |  Size: 6.7 KiB

View file

Before

Width:  |  Height:  |  Size: 3.1 KiB

After

Width:  |  Height:  |  Size: 3.1 KiB

View file

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 14 KiB

View file

Before

Width:  |  Height:  |  Size: 2.8 KiB

After

Width:  |  Height:  |  Size: 2.8 KiB

View file

Before

Width:  |  Height:  |  Size: 8.3 KiB

After

Width:  |  Height:  |  Size: 8.3 KiB

View file

Before

Width:  |  Height:  |  Size: 2.7 KiB

After

Width:  |  Height:  |  Size: 2.7 KiB

View file

@ -4,25 +4,25 @@ date: 2022-11-20T09:03:20-08:00
draft: false
headless: true
resources:
- src: images/cryptoparty-300x100.png
- src: cryptoparty-300x100.png
params:
url: https://cryptoparty-hamburg.de
- src: images/ffhhlogo_neu.png
- src: ffhhlogo_neu.png
params:
url: https://hamburg.freifunk.net/
- src: images/fux_logo.png
- src: fux_logo.png
params:
url: https://www.fux-eg.org/
- src: images/fiff.png
- src: fiff.png
params:
url: https://www.fiff.de/
- src: images/hbgu.png
- src: hbgu.png
params:
url: https://www.stop-watching-hamburg.de/
- src: images/frappant.png
- src: frappant.png
params:
url: https://frappant.org/
- src: images/gaengeviertel.png
- 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>