{ lib, writeTextFile, jsonConfig ? {} , title ? "Landing Page", destination ? "/index.html", ... }: with lib; writeTextFile { name = "landingpage"; destination = destination; text = '' ${title} ${let createItemRow = { titel ? null, text ? null, items ? []}: ''
${optionalString (titel != null) "

${title}

"} ${optionalString (text != null) ''
${text}
''}
${concatStringsSep "\n" (map createSubItem items)}
'' ; createSubItem = { label, href, image }: # const shortLabel = (label.length > 28) ? `''${label.substring(0,25)}...` : label; ''
${label}
''; in concatStringsSep "\n" (map createItemRow jsonConfig.items) } ''; }