From d6f6424ac8c29fb840f0fc52bcc5623e4419dff3 Mon Sep 17 00:00:00 2001 From: Justin Humm Date: Thu, 9 Jan 2020 16:24:36 +0100 Subject: nixos/gollum: introduce --h1-title option --- nixos/modules/services/misc/gollum.nix | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'nixos/modules/services/misc/gollum.nix') diff --git a/nixos/modules/services/misc/gollum.nix b/nixos/modules/services/misc/gollum.nix index f4a9c72b154..46f90c78eb8 100644 --- a/nixos/modules/services/misc/gollum.nix +++ b/nixos/modules/services/misc/gollum.nix @@ -50,6 +50,12 @@ in description = "Parse and interpret emoji tags"; }; + h1-title = mkOption { + type = types.bool; + default = false; + description = "Use the first h1 as page title"; + }; + branch = mkOption { type = types.str; default = "master"; @@ -102,6 +108,7 @@ in --ref ${cfg.branch} \ ${optionalString cfg.mathjax "--mathjax"} \ ${optionalString cfg.emoji "--emoji"} \ + ${optionalString cfg.h1-title "--h1-title"} \ ${optionalString (cfg.allowUploads != null) "--allow-uploads ${cfg.allowUploads}"} \ ${cfg.stateDir} ''; -- cgit 1.4.1