From 93d2d49567c3ae12db96526650cdc6459d21d62d Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sun, 31 Jan 2010 20:09:33 -0200 Subject: Adding parameters $account_creation_password, $add_plugins and $disable_plugins --- templates/ikiwiki.setup.erb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'templates') diff --git a/templates/ikiwiki.setup.erb b/templates/ikiwiki.setup.erb index 1bf684d..786dcbe 100644 --- a/templates/ikiwiki.setup.erb +++ b/templates/ikiwiki.setup.erb @@ -124,7 +124,7 @@ use IkiWiki::Setup::Standard { # To create output files named page.html rather than page/index.html. #usedirs => 0, # Simple spam prevention: require an account-creation password. - #account_creation_password => "example", +<%= if account_creation_password != false %> account_creation_password => "<%= account_creation_password %>",<%= end %> # Cost of generating a password using Authen::Passphrase::BlowfishCrypt #password_cost => 8, # Uncomment to force ikiwiki to run with a particular umask. @@ -143,9 +143,10 @@ use IkiWiki::Setup::Standard { # To add plugins, list them here. #add_plugins => [qw{goodstuff search wikitext camelcase # htmltidy fortune sidebar map rst anonok}], +<%= if add_plugins != false %> add_plugins => [qw{<%= add_plugins %>}],<%= end %> # If you want to disable any of the default plugins, list them here. #disable_plugins => [qw{inline htmlscrubber passwordauth openid}], - disable_plugins => [qw{openid}], +<%= if disable_plugins != false %> disable_plugins => [qw{<%= disable_plugins %>}],<%= end %> # To add a directory to the perl search path, use this. #libdir => "/home/me/.ikiwiki/", -- cgit v1.2.3