From: intrigeri Date: Wed, 22 Dec 2010 11:55:33 +0000 (+0100) Subject: po: do not override homepage title when it was overridden. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=406485917af781a63607b50414bbf0d2e479da5f;p=ikiwiki.git po: do not override homepage title when it was overridden. --- diff --git a/IkiWiki/Plugin/po.pm b/IkiWiki/Plugin/po.pm index a142bb909..9ed4a1adb 100644 --- a/IkiWiki/Plugin/po.pm +++ b/IkiWiki/Plugin/po.pm @@ -367,7 +367,8 @@ sub pagetemplate (@) { && $masterpage eq "index") { $template->param('parentlinks' => []); } - if (ishomepage($page) && $template->query(name => "title")) { + if (ishomepage($page) && $template->query(name => "title") + && !$template->param("title_overridden")) { $template->param(title => $config{wikiname}); } }