From 28421744367b70ad95c34ca387f5281264e99c68 Mon Sep 17 00:00:00 2001 From: Michael Boelen Date: Tue, 19 Nov 2024 09:11:47 +0000 Subject: [PATCH] Add grid to home page --- themes/nluug/layouts/index.html | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/themes/nluug/layouts/index.html b/themes/nluug/layouts/index.html index 153be5c..d98ce37 100644 --- a/themes/nluug/layouts/index.html +++ b/themes/nluug/layouts/index.html @@ -1,6 +1,8 @@ {{ define "main" }}
- {{ .Content }} + +
+
{{ .Content }} {{ if gt (len (where .Site.RegularPages "Section" "nieuws")) 0 }}
@@ -17,11 +19,12 @@
{{ end }} +
+
{{ $upcoming_events := sort .Site.Data.evenementen.kalender "date_start" "asc" }}

{{ i18n "header_upcoming_events" | default "Aankomende evenementen" }}

-
{{ range $upcoming_events }} {{ $date_start := .date_start | time.Format "2006-01-02" }} {{ $t := time.Now | time.Format "2006-01-02" }} @@ -44,7 +47,7 @@ {{ end }} {{ end }} {{ end }} -
+

{{ i18n "sentence_more_events_planned" | default "Naast de door ons georganiseerde evenementen staat er meer op de agenda" }}.

    {{ range first 10 (where $upcoming_events "date_start" "ge" (dateFormat "2006-01-02" now)) }} @@ -54,6 +57,8 @@

    » Volledige evenementenkalender

+
+
{{ if gt (len (.Site.Data.projecten.open)) 0 }}