From 5e4ffee3ec6ac775230341118cc6c4295350bfc8 Mon Sep 17 00:00:00 2001 From: Christian Weiske Date: Sun, 17 May 2020 11:12:34 +0200 Subject: [PATCH] Better title --- bin/build-html.php | 5 +++-- data/templates/discover.tpl.php | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) 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); ?>

-- 2.30.2