From a6e764d2fcf675ffd3e7d613c1a2b61806b57cef Mon Sep 17 00:00:00 2001 From: valentin gagarin Date: Wed, 13 Nov 2024 15:24:41 +0100 Subject: [PATCH] list events on the dedicated page more like articles --- website/content/events.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/website/content/events.nix b/website/content/events.nix index 26f5360..450c50f 100644 --- a/website/content/events.nix +++ b/website/content/events.nix @@ -7,7 +7,13 @@ body = with lib; let - events = map (event: "- [${event.start-date} ${event.title}](${link event})") config.collections.events.entry; + events = map + (event: with lib; '' + ## [${event.title}](${link event}) + + ${event.start-date} ${optionalString (!isNull event.end-date && event.end-date != event.start-date) "to ${event.end-date}"} in ${event.location} + '') + config.collections.events.entry; in '' ${join "\n" events}