2024-11-13 15:24:41 +01:00
|
|
|
{ config, lib, ... }:
|
|
|
|
{
|
|
|
|
pages.events = { link, ... }: rec {
|
|
|
|
title = "Events";
|
|
|
|
description = "Events related to the Fediverse and NixOS";
|
|
|
|
summary = description;
|
|
|
|
body =
|
|
|
|
with lib;
|
|
|
|
let
|
2024-11-13 15:24:41 +01:00
|
|
|
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;
|
2024-11-13 15:24:41 +01:00
|
|
|
in
|
|
|
|
''
|
|
|
|
${join "\n" events}
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|