git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #93532 from erictapen/gollum-h1-title

nixos/gollum: introduce --h1-title option

commit6a7b11055c6ceb2b224cd99a33fcd93b4ed66749 authorJustin Humm <justin.humm@posteo.de> dateSat 22 Aug 2020, 22:45 (6 years ago) parent05a4dc3d6f6424
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 '';