refactor
This commit is contained in:
parent
ef9f586d1d
commit
d30b078411
5
tags.nix
5
tags.nix
@ -12,7 +12,10 @@
|
||||
else tag name {} maybeAttrs;
|
||||
noChildrenTag = name: attrs: "<${name} ${evalAttrs attrs}>";
|
||||
|
||||
tagsToGen = ["ul" "li" "html" "head" "body" "div" "p" "a" "title" "code" "pre" "nav" "article"] ++ (map (n: "h${toString n}") (range 1 6));
|
||||
tagsToGen =
|
||||
(map (n: "h${toString n}") (range 1 6))
|
||||
++ ["ul" "li" "html" "head" "body" "div" "p"]
|
||||
++ ["a" "title" "code" "pre" "nav" "article" "script"];
|
||||
tags = genAttrs tag tagsToGen;
|
||||
|
||||
noChildrenTagsToGen = ["link" "meta"];
|
||||
|
@ -111,7 +111,7 @@
|
||||
})
|
||||
]))
|
||||
(body ''
|
||||
<script>0</script>
|
||||
${script "0"}
|
||||
${sidebarSection}
|
||||
${div {class = "content";} content}
|
||||
'')
|
||||
|
Loading…
Reference in New Issue
Block a user