From d4c749c4d427f6aeec37495fc63102e0856be43e Mon Sep 17 00:00:00 2001 From: Valentin Gagarin Date: Sun, 10 Nov 2024 04:22:54 +0100 Subject: [PATCH] fix
rendering --- presentation/dom.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/presentation/dom.nix b/presentation/dom.nix index 9f271e77..598af7cb 100644 --- a/presentation/dom.nix +++ b/presentation/dom.nix @@ -536,7 +536,7 @@ let # setting to an attribute set will wrap the section in `
` hgroup.attrs = mkOption { type = with types; nullOr (submodule { options = global-attrs; }); - default = with lib; mkIf (!isNull config.before || !isNull config.after) { }; + default = with lib; if (config.before == [ ] || config.after == [ ]) then null else { }; }; # https://html.spec.whatwg.org/multipage/sections.html#the-hgroup-element before = mkOption {