Explorar o código

Merge pull request #88 from TomWor/asset-title

Added asset name in page title if on detail page, fixes #79
Bojidar Marinov %!s(int64=9) %!d(string=hai) anos
pai
achega
c7fb7b639d
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      templates/_header.phtml

+ 1 - 1
templates/_header.phtml

@@ -17,7 +17,7 @@
   <meta http-equiv="X-UA-Compatible" content="IE=edge">
   <meta name="viewport" content="width=device-width, initial-scale=1">
   <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
-  <title>Godot Asset Library</title>
+  <title><?php if(!empty($data['title'])){ echo(esc($data['title'].' - ')); } ?>Godot Asset Library</title>
 
   <!-- Bootstrap -->
   <link href="<?php echo raw($bowerpath) ?>/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet">