From: Christian Weiske Date: Sun, 17 May 2020 09:12:34 +0000 (+0200) Subject: Better title X-Git-Tag: v2.1.0~2 X-Git-Url: https://git.cweiske.de/stouyapi.git/commitdiff_plain/5e4ffee3ec6ac775230341118cc6c4295350bfc8?ds=sidebyside Better title --- diff --git a/bin/build-html.php b/bin/build-html.php index f7f9154..112a93d 100755 --- a/bin/build-html.php +++ b/bin/build-html.php @@ -50,7 +50,7 @@ function renderDiscoverFile($discoverFile) { $json = json_decode(file_get_contents($discoverFile)); - $title = $json->title; + $title = $json->title . ' OUYA games'; $sections = []; foreach ($json->rows as $row) { $section = (object) [ @@ -89,8 +89,9 @@ function renderDiscoverFile($discoverFile) } $navLinks = []; - if ($title == 'DISCOVER') { + if ($json->title == 'DISCOVER') { $navLinks['../'] = 'back'; + $title = 'OUYA games list'; } else { $navLinks['./'] = 'discover'; } diff --git a/data/templates/discover.tpl.php b/data/templates/discover.tpl.php index 7f08c44..cd078dd 100644 --- a/data/templates/discover.tpl.php +++ b/data/templates/discover.tpl.php @@ -2,14 +2,14 @@ - OUYA: <?= htmlspecialchars($title); ?> + <?= htmlspecialchars($title); ?>
-

+

title); ?>