From ef9f586d1db53ced6245b6ec7cb8f7a9cd865552 Mon Sep 17 00:00:00 2001 From: Yusuf Bera Ertan Date: Sun, 31 Jul 2022 10:05:16 +0300 Subject: [PATCH] add workaround for firefox --- templaters/basic.nix | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/templaters/basic.nix b/templaters/basic.nix index 452b2e9..d077252 100644 --- a/templaters/basic.nix +++ b/templaters/basic.nix @@ -9,7 +9,7 @@ ... } @ context: let 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; stylesheets = map tags.mkStylesheet [ @@ -91,7 +91,7 @@ ] ++ postsLinks; - sidebarSection = optional ((length pagesSection) > 0) ( + sidebarSection = optionalString ((length pagesSection) > 0) ( with tags; nav {class = "sidebar";} [ (div {class = "pure-g";} pagesSection) @@ -110,7 +110,11 @@ content = "width=device-width, initial-scale=1"; }) ])) - (body (sidebarSection ++ [(div {class = "content";} content)])) + (body '' + + ${sidebarSection} + ${div {class = "content";} content} + '') ]} '';