fix <hgroup> rendering

This commit is contained in:
Valentin Gagarin 2024-11-10 04:22:54 +01:00
parent 1fb6b854a0
commit d4c749c4d4

View file

@ -536,7 +536,7 @@ let
# setting to an attribute set will wrap the section in `<hgroup>`
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 {