git.iko.soy/typeable/nixpkgs
on master help sign in
nixos/gollum: introduce --h1-title option
commitd6f6424ac8c29fb840f0fc52bcc5623e4419dff3 authorJustin Humm <justin.humm@posteo.de> dateThu 9 Jan 2020, 16:24 (7 years ago) parente303532
1 file changed+7
nixos/modules/services/misc/gollum.nix+7
nixos/modules/services/misc/gollum.nix+7
@@ -50,6 +50,12 @@ in
5050 description = "Parse and interpret emoji tags";
5151 };
5252
53+ h1-title = mkOption {
54+ type = types.bool;
55+ default = false;
56+ description = "Use the first h1 as page title";
57+ };
58+
5359 branch = mkOption {
5460 type = types.str;
5561 default = "master";
@@ -102,6 +108,7 @@ in
102108 --ref ${cfg.branch} \
103109 ${optionalString cfg.mathjax "--mathjax"} \
104110 ${optionalString cfg.emoji "--emoji"} \
111+ ${optionalString cfg.h1-title "--h1-title"} \
105112 ${optionalString (cfg.allowUploads != null) "--allow-uploads ${cfg.allowUploads}"} \
106113 ${cfg.stateDir}
107114 '';