nixos/gollum: introduce --h1-title option
This commit is contained in:
parent
e303532eab
commit
d6f6424ac8
@ -50,6 +50,12 @@ in
|
|||||||
description = "Parse and interpret emoji tags";
|
description = "Parse and interpret emoji tags";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
h1-title = mkOption {
|
||||||
|
type = types.bool;
|
||||||
|
default = false;
|
||||||
|
description = "Use the first h1 as page title";
|
||||||
|
};
|
||||||
|
|
||||||
branch = mkOption {
|
branch = mkOption {
|
||||||
type = types.str;
|
type = types.str;
|
||||||
default = "master";
|
default = "master";
|
||||||
@ -102,6 +108,7 @@ in
|
|||||||
--ref ${cfg.branch} \
|
--ref ${cfg.branch} \
|
||||||
${optionalString cfg.mathjax "--mathjax"} \
|
${optionalString cfg.mathjax "--mathjax"} \
|
||||||
${optionalString cfg.emoji "--emoji"} \
|
${optionalString cfg.emoji "--emoji"} \
|
||||||
|
${optionalString cfg.h1-title "--h1-title"} \
|
||||||
${optionalString (cfg.allowUploads != null) "--allow-uploads ${cfg.allowUploads}"} \
|
${optionalString (cfg.allowUploads != null) "--allow-uploads ${cfg.allowUploads}"} \
|
||||||
${cfg.stateDir}
|
${cfg.stateDir}
|
||||||
'';
|
'';
|
||||||
|
Loading…
Reference in New Issue
Block a user