Fediversity/website/content/events.nix

17 lines
393 B
Nix

{ config, lib, ... }:
{
pages.events = { link, ... }: rec {
title = "Events";
description = "Events related to the Fediverse and NixOS";
summary = description;
body =
with lib;
let
events = map (event: "- [${event.start-date} ${event.title}](${link event})") config.collections.events.entry;
in
''
${join "\n" events}
'';
};
}