summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQuentin Aristote <quentin@aristote.fr>2023-02-23 18:04:20 +0100
committerQuentin Aristote <quentin@aristote.fr>2023-02-23 18:38:42 +0100
commitc48e260f85ea8f203e64cbc2a82ff774cf0b5a9f (patch)
treec09fca37e938a58da50b07c71f370392174c4378
parent898040b8dd3257783292b9542ce863944e6cc6ea (diff)
add doctype
-rw-r--r--html/default.nix2
-rw-r--r--lib/html.nix3
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;