The opinions of other developers are invited.
----------------------------------------------------------------------------------
Hi all,
I suggest that we add the config variable
$cf['title']['startpage']="{SITE}";
so that the title (in the browser tab) on the 1st page (=startpage or homepage) can be set different from the title of other pages. Thus the startpage can have the title "MYSITE" and the other pages can get "MYSITE – HEADLINE".
Now I find that Google usually lists XH pages as "MYSITE – Start" or "MYSITE – Welcome", which looks rather odd compared to the way other websites are listed.
The requested change is quite simple, in functions.php starting with line 2084 the changes are
Code: Select all
function XH_title($site, $subtitle)
{
global $cf,$s;
if ($site != '') {
$site = XH_hsc($site);
$replacePairs = array('{SITE}' => $site, '{PAGE}' => $subtitle);
$title = $s == 0
? strtr($cf['title']['startpage'], $replacePairs)
: strtr($cf['title']['format'], $replacePairs);
} else {
$title = $subtitle;
}
return $title;
}