add workaround for firefox
This commit is contained in:
parent
8b25b6af97
commit
ef9f586d1d
@ -9,7 +9,7 @@
|
|||||||
...
|
...
|
||||||
} @ context: let
|
} @ context: let
|
||||||
inherit (utils) readFile mapAttrsToList mapAttrs tags fetchGit map elemAt foldl' concatStrings genAttrs toString;
|
inherit (utils) readFile mapAttrsToList mapAttrs tags fetchGit map elemAt foldl' concatStrings genAttrs toString;
|
||||||
inherit (pkgs.lib) optionalAttrs optional length splitString nameValuePair toInt range mapAttrs' singleton;
|
inherit (pkgs.lib) optionalString optionalAttrs optional length splitString nameValuePair toInt range mapAttrs' singleton;
|
||||||
inherit (builtins) listToAttrs;
|
inherit (builtins) listToAttrs;
|
||||||
|
|
||||||
stylesheets = map tags.mkStylesheet [
|
stylesheets = map tags.mkStylesheet [
|
||||||
@ -91,7 +91,7 @@
|
|||||||
]
|
]
|
||||||
++ postsLinks;
|
++ postsLinks;
|
||||||
|
|
||||||
sidebarSection = optional ((length pagesSection) > 0) (
|
sidebarSection = optionalString ((length pagesSection) > 0) (
|
||||||
with tags;
|
with tags;
|
||||||
nav {class = "sidebar";} [
|
nav {class = "sidebar";} [
|
||||||
(div {class = "pure-g";} pagesSection)
|
(div {class = "pure-g";} pagesSection)
|
||||||
@ -110,7 +110,11 @@
|
|||||||
content = "width=device-width, initial-scale=1";
|
content = "width=device-width, initial-scale=1";
|
||||||
})
|
})
|
||||||
]))
|
]))
|
||||||
(body (sidebarSection ++ [(div {class = "content";} content)]))
|
(body ''
|
||||||
|
<script>0</script>
|
||||||
|
${sidebarSection}
|
||||||
|
${div {class = "content";} content}
|
||||||
|
'')
|
||||||
]}
|
]}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user