diff --git a/site-generator b/site-generator index 1ad2734..91e090b 100755 --- a/site-generator +++ b/site-generator @@ -125,6 +125,8 @@ sub main { # from the generated list of pages. @page_args= grep { $_ ne 'DBI' } @page_args; @page_args= grep { $_ ne 'root_template' } @page_args; + @page_args= grep { $_ ne 'media_hostname' } @page_args; + }; foreach my $page_arg (@page_args) { my %parsed_arg = parse_page_arg($page_arg); @@ -142,6 +144,10 @@ sub main { $page_config->{'baseurl'} = $config{root_template}{baseurl}; } + if (exists $config{root_template}{media_hostname}) { + $page_config->{'media_hostname'} = $config{root_template}{media_hostname}; + } + if ($page_config->{'multipage'} && $page_config->{'multipage'} eq 'true') { if (scalar @{$parsed_arg{'ids'}} == 1) { @{$parsed_arg{'ids'}} = get_ids_from_db($tt, \$page_config); diff --git a/templates/content-episode.tpl.html b/templates/content-episode.tpl.html index fe24fa6..9b3b643 100644 --- a/templates/content-episode.tpl.html +++ b/templates/content-episode.tpl.html @@ -1,6 +1,7 @@ + correspondents/