From c48e260f85ea8f203e64cbc2a82ff774cf0b5a9f Mon Sep 17 00:00:00 2001 From: Quentin Aristote Date: Thu, 23 Feb 2023 18:04:20 +0100 Subject: add doctype --- html/default.nix | 2 +- lib/html.nix | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/html/default.nix b/html/default.nix index b68ad07..48ac8fa 100644 --- a/html/default.nix +++ b/html/default.nix @@ -9,7 +9,7 @@ let as = "font"; }; in with html; -html.html { lang = "en"; } [ +doctype "html" + html.html { lang = "en"; } [ (head [ # Basic page needs (metaWith { charset = "utf-8"; }) diff --git a/lib/html.nix b/lib/html.nix index aa1c839..8bda47c 100644 --- a/lib/html.nix +++ b/lib/html.nix @@ -202,8 +202,9 @@ let "${tagsContainerFuns.time { date = start; } start} - ${ tagsContainerFuns.time { date = end; } end }"; + doctype = type: "\n"; in tagsContainerFuns // tagsEmptyFuns // { - inherit for comment container empty file href icon lines mailto timerange; + inherit for comment container doctype empty file href icon lines mailto timerange; } // { sort = let lt = x: y: x < y; -- cgit v1.2.3