{ config, lib, ... }:
{
  pages.news = { link, ... }: rec {
    title = "News";
    description = "News about Fediversity";
    summary = description;
    body =
      with lib;
      let
        news = map
          (article: ''
            ## [${article.title}](${link article})

            ${article.date} by ${article.author}

            ${article.summary}
          '')
          config.collections.news.entry;
      in
      ''
        ${join "\n\n" news}
      '';
  };
}
