diff --git a/site-generator b/site-generator index 91e090b..86e52a7 100755 --- a/site-generator +++ b/site-generator @@ -140,12 +140,13 @@ sub main { $page_config->{'root_template'} = $config{root_template}{content}; } - if (exists $config{root_template}{baseurl}) { - $page_config->{'baseurl'} = $config{root_template}{baseurl}; - } - - if (exists $config{root_template}{media_hostname}) { - $page_config->{'media_hostname'} = $config{root_template}{media_hostname}; + # Set all config root_template properties as default page config properties + # except the previously set root_template content property + my @root_args = grep { $_ ne 'content' } keys %{$config{root_template}}; + foreach my $root_arg (@root_args) { + if (exists $page_config->{$root_arg} == 0) { + $page_config->{$root_arg} = $config{root_template}{$root_arg}; + } } if ($page_config->{'multipage'} && $page_config->{'multipage'} eq 'true') {