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