minor metadata cleanup

This commit is contained in:
Jeremy Kauffman 2019-09-19 12:48:37 -04:00
parent fecc4d1308
commit 4a3fabf2fd
3 changed files with 6 additions and 6 deletions

View file

@ -20,7 +20,7 @@ class OS
'Android',
'icon-android',
false,
false,
"Android",
"<span class='icon-android icon-fw'></span> Android"
];
@ -30,7 +30,7 @@ class OS
'iOS',
'icon-mobile',
false,
false,
"iOS",
"<span class='icon-ios icon-fw'></span> iOS"
];

View file

@ -71,7 +71,7 @@ class Response
public static function getMetaTitle()
{
return static::$metaTitle;
return trim(static::$metaTitle);
}
public static function guessMetaTitle($content)
@ -82,11 +82,11 @@ class Response
if ($headerValue == '1' || !$title) {
$title = $titleMatches[2][$matchIndex];
if ($headerValue == '1') {
return $title;
return trim($title);
}
}
}
return $title;
return trim($title);
}
public static function getJsCalls()

View file

@ -6,7 +6,7 @@
<section class="hero hero--half-height">
<div class="inner-wrap inner-wrap--center-hero">
<h1>
<?php echo __('download.for-os2', ['%os%' => OS::OS_DETAIL($os)[5]]) ?>
<?php echo __('download.for-os2', ['%os%' => OS::OS_DETAIL($os)[4]]) ?>
</h1>
</div>
</section>