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') {
diff --git a/templates/content-episode.tpl.html b/templates/content-episode.tpl.html
index 9b3b643..0ad89a1 100644
--- a/templates/content-episode.tpl.html
+++ b/templates/content-episode.tpl.html
@@ -75,7 +75,7 @@ Hosted by
+
diff --git a/templates/content-index.tpl.html b/templates/content-index.tpl.html
index 1743d75..a1cb3b7 100644
--- a/templates/content-index.tpl.html
+++ b/templates/content-index.tpl.html
@@ -84,7 +84,7 @@
diff --git a/templates/content-twat_episode.tpl.html b/templates/content-twat_episode.tpl.html
index 204795b..ef9d965 100644
--- a/templates/content-twat_episode.tpl.html
+++ b/templates/content-twat_episode.tpl.html
@@ -58,14 +58,14 @@
Hosted by on is flagged as and is released under a license.
-
+