Fediversity/website/content/events.nix

27 lines
662 B
Nix
Raw Normal View History

{ config, lib, ... }:
{
2025-02-19 18:34:19 +01:00
pages.events =
{ link, ... }:
rec {
title = "Events";
description = "Events related to the Fediverse and NixOS";
summary = description;
body =
with lib;
let
events = map (
event: with lib; ''
## [${event.title}](${link event})
2025-02-19 18:34:19 +01:00
${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}
'';
};
}