Better title
[stouyapi.git] / bin / build-html.php
index f7f915438d8bcff9b1fdc7b9a2c550277d2718f6..112a93d404cde1b575d3c5caad29b349e7d8525c 100755 (executable)
@@ -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';
     }