forked from Fediversity/fediversity.eu
list events on the dedicated page more like articles
This commit is contained in:
parent
52e0db710a
commit
252818fadd
|
@ -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}
|
||||
|
|
Reference in a new issue