From 4a883c5bf68d3bd106657c3082b095994334dd05 Mon Sep 17 00:00:00 2001 From: Michael Boelen Date: Wed, 17 May 2023 20:58:43 +0200 Subject: [PATCH] Optimaliseren hoofdpagina --- themes/nluug/layouts/index.html | 31 +++++++++++++++++++------------ 1 file changed, 19 insertions(+), 12 deletions(-) diff --git a/themes/nluug/layouts/index.html b/themes/nluug/layouts/index.html index 0c47bfa..71d1e5e 100644 --- a/themes/nluug/layouts/index.html +++ b/themes/nluug/layouts/index.html @@ -2,10 +2,10 @@ {{ .Content }} {{ if gt (len (where .Site.RegularPages "Section" "nieuws")) 0 }} +

Laatste nieuws

-
    - {{ range (first 3 (where .Site.RegularPages "Section" "nieuws").ByDate.Reverse) }} + {{ range (first 5 (where .Site.RegularPages "Section" "nieuws").ByDate.Reverse) }}
  • {{ .Title }}
    @@ -13,17 +13,19 @@
  • {{ end }}
-
+
{{ end }} {{ if gt (len (.Site.Data.projecten.open)) 0 }} -

Lopende projecten

- -

Op de pagina Projecten beschrijven we deze en andere projecten. Meehelpen? Contacteer een actief projectlid voor meer informatie.

+
+

Lopende projecten

+ +

Op de pagina Projecten beschrijven we deze en andere projecten. Meehelpen? Contacteer een actief projectlid voor meer informatie.

+
{{ end }}

Aankomende evenementen

@@ -33,8 +35,13 @@ {{ if eq .highlight_on_homepage true }}

{{ .name }}

- {{ with .date_start | dateFormat "02-01-2006" }}

Datum: {{ . }}

{{ end }} - {{ with .event_address }}

Adres: {{ with .street_address }}{{ . }}{{ end }}{{ with .postal_code }}, {{ . }}{{ end }}{{ with .city }}, {{ . }}{{ end }}{{ with .country }}, {{ . }}{{ end }}

{{ end }} +

Datum:

+
+ {{ with .event_location }}{{ . }}
{{ end }} + {{ with .event_address }} + {{ with .street_address }}{{ . }}{{ end }}
{{ with .postal_code }}{{ . }}{{ end }}{{ with .city }}, {{ . }}{{ end }}{{ with .country }}, {{ . }}{{ end }} + {{ end }} +
{{ with .event_url }}Meer informatie{{ end }}
{{ end }}