diff options
| -rw-r--r-- | html/default.nix | 2 | ||||
| -rw-r--r-- | 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: "<!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; |
