diff --git a/themes/googleimage/controller/ListController.php b/themes/googleimage/controller/ListController.php
index cbd0850..0439719 100644
--- a/themes/googleimage/controller/ListController.php
+++ b/themes/googleimage/controller/ListController.php
@@ -35,6 +35,9 @@ Class ListController extends Controller {
$breadcrumbs = $this->getBreadcrumbs($menus, $subcate);
$pageTitle = !empty($titles) ? $titles[0]['name'] : "FileSite.io - 无数据库、基于文件和目录的Markdown文档、网址导航、图书、图片、视频网站PHP开源系统";
+ if (!empty($subcate)) {
+ $pageTitle = "{$subcate['directory']}的照片,来自{$pageTitle}";
+ }
$viewName = '//site/index'; //共享视图
$params = compact('cateId', 'dirTree', 'scanResults', 'menus', 'html', 'breadcrumbs');
return $this->render($viewName, $params, $pageTitle);
diff --git a/themes/googleimage/controller/SiteController.php b/themes/googleimage/controller/SiteController.php
index c8fa918..74a4696 100644
--- a/themes/googleimage/controller/SiteController.php
+++ b/themes/googleimage/controller/SiteController.php
@@ -30,7 +30,11 @@ Class SiteController extends Controller {
$html = $scanner->fixMDUrls($readmeFile['realpath'], $html);
}
+ $subcate = $scanResults[$cateId];
$pageTitle = !empty($titles) ? $titles[0]['name'] : "FileSite.io - 无数据库、基于文件和目录的Markdown文档、网址导航、图书、图片、视频网站PHP开源系统";
+ if (!empty($subcate)) {
+ $pageTitle = "{$subcate['directory']}的照片,来自{$pageTitle}";
+ }
$viewName = 'index';
$params = compact('cateId', 'dirTree', 'scanResults', 'menus', 'html');
return $this->render($viewName, $params, $pageTitle);
diff --git a/themes/googleimage/views/layout/main.php b/themes/googleimage/views/layout/main.php
index b4d850b..10a4414 100644
--- a/themes/googleimage/views/layout/main.php
+++ b/themes/googleimage/views/layout/main.php
@@ -96,6 +96,7 @@ eof;
+