|
|
|
@ -59,15 +59,12 @@ Class SiteController extends Controller {
@@ -59,15 +59,12 @@ Class SiteController extends Controller {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$pageTitle = !empty($titles) ? $titles[0]['name'] : "FileSite.io - 无数据库、基于文件和目录的Markdown文档、网址导航、图书、图片、视频网站PHP开源系统"; |
|
|
|
|
$pageTitle = $defaultTitle = !empty($titles) ? $titles[0]['name'] : FSC::$app['config']['site_name']; |
|
|
|
|
if (!empty($readmeFile['title'])) { |
|
|
|
|
$pageTitle = $readmeFile['title']; |
|
|
|
|
$pageTitle = "{$readmeFile['title']},来自{$defaultTitle}"; |
|
|
|
|
} |
|
|
|
|
if (!empty($subcate)) { |
|
|
|
|
$pageTitle = "{$subcate['directory']},来自{$pageTitle}"; |
|
|
|
|
$pageTitle = "{$subcate['directory']},来自{$defaultTitle}"; |
|
|
|
|
} |
|
|
|
|
$viewName = 'index'; |
|
|
|
|
$params = compact('cateId', 'dirTree', 'scanResults', 'menus', 'htmlReadme', 'htmlCateReadme'); |
|
|
|
|