diff --git a/website/presentation/default.nix b/website/presentation/default.nix index aa0dba42..7c472dd1 100644 --- a/website/presentation/default.nix +++ b/website/presentation/default.nix @@ -49,7 +49,10 @@ in head = '' ${page.title} - + ${with lib; join "\n" (map + (author: '''') + (if isList page.author then page.author else [page.author])) + } ''; body = '' ${templates.nav { menu = { menu = config.menus.main; }; }} diff --git a/website/structure/content-types.nix b/website/structure/content-types.nix index d396010b..cd9a4716 100644 --- a/website/structure/content-types.nix +++ b/website/structure/content-types.nix @@ -95,12 +95,12 @@ in }; date = mkOption { description = "Publication date"; - type = with types; nullOr str; + type = with types; str; default = null; }; author = mkOption { description = "Page author"; - type = with types; nullOr (either str (listOf str)); + type = with types; either str (nonEmptyListOf str); default = null; }; };