mirror of
https://github.com/suk-ws/ph-Bookshelf.git
synced 2025-01-19 07:22:26 +08:00
Eyre_S
f00a421c31
- 现在读取的是 data 目录下的 custom.css 和 custom.js 文件 - custom.css 会作为最后一个 <head> 子元素输出,custom.js 会在页面尾在预定义 js 输出后输出
32 lines
1.3 KiB
PHP
32 lines
1.3 KiB
PHP
<?php require_once "./constant.php" ?>
|
|
<?php require_once "./src/Data/SiteMeta.php" ?>
|
|
<?php require_once "./src/Data/PageMeta.php" ?>
|
|
<!DOCTYPE HTML>
|
|
<html lang="<?= "" // TODO Page language ?>">
|
|
<head>
|
|
<!-- Gitbook Meta -->
|
|
<meta charset="UTF-8">
|
|
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
|
<meta name="HandheldFriendly" content="true" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
|
|
<meta name="apple-mobile-web-app-capable" content="yes">
|
|
<meta name="apple-mobile-web-app-status-bar-style" content="black">
|
|
<!-- Page Meta -->
|
|
<link rel="shortcut icon" href="<?= SiteMeta::getGlobalIcon() ?>" type="image/x-icon">
|
|
<!-- Unused: <link rel="apple-touch-icon-precomposed" sizes="152x152" href="gitbook/images/apple-touch-icon-precomposed-152.png"> -->
|
|
<title><?= PageMeta::getPageTitle() ?></title>
|
|
<meta name="description" content="<?= PageMeta::getDescription() ?>">
|
|
<meta name="generator" content="<?= get_frontpage_generate_version() ?>">
|
|
<!-- Gitbook Assets(css) -->
|
|
<?php
|
|
foreach (SiteMeta::getGitbookStylesheetsList() as $item) {
|
|
echo "<link rel=\"stylesheet\" href=\"$item\">";
|
|
}
|
|
?>
|
|
<!-- Customs(css) -->
|
|
<style><?= SiteMeta::getCustomCssContent("custom") ?></style>
|
|
</head>
|
|
<body>
|
|
<div class="book">
|
|
|