diff options
| author | Quentin Aristote <quentin@aristote.fr> | 2023-02-23 18:04:20 +0100 |
|---|---|---|
| committer | Quentin Aristote <quentin@aristote.fr> | 2023-02-23 18:38:42 +0100 |
| commit | c48e260f85ea8f203e64cbc2a82ff774cf0b5a9f (patch) | |
| tree | c09fca37e938a58da50b07c71f370392174c4378 | |
| parent | 898040b8dd3257783292b9542ce863944e6cc6ea (diff) | |
add doctype
| -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; |
