1
0
mirror of https://github.com/suk-ws/ph-Bookshelf.git synced 2025-01-19 07:22:26 +08:00
ph-Bookshelf/template/header.php
Eyre_S 68c2621d9f
脱离 gitbook 前端,预备新前端
- 脱离了 gitbook
- 添加 demo.html 作为新前端的结构模板
- 建立基础的页面样式
  - 建立基础的 侧边栏-文章 布局
  - 侧边栏样式
  - 自定义的字体
  - <h1>, <a>, <small> 的样式实现
- 目录折叠功能实现
2021-09-30 19:34:16 +08:00

28 lines
1.1 KiB
PHP

<?php require_once "./src/Data/SiteMeta.php" ?>
<?php require_once "./src/Data/PageMeta.php" ?>
<!DOCTYPE HTML>
<html lang="<?= "" // TODO Page language ?>">
<head>
<!-- Static Meta -->
<meta charset="UTF-8">
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<meta name="HandheldFriendly" content="true" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="generator" content="<?= SiteMeta::get_frontpage_generate_version() ?>">
<!-- Page Meta -->
<link rel="shortcut icon" href="<?= SiteMeta::getGlobalIcon() ?>">
<title><?= PageMeta::getPageTitle() ?></title>
<meta name="description" content="<?= PageMeta::getDescription() ?>">
<!-- Gitbook Assets(css) -->
<?php
foreach (SiteMeta::getGitbookStylesheetsList() as $item) {
echo "<link rel=\"stylesheet\" href=\"$item\">";
}
?>
<!-- Customs(css) -->
<style><?= SiteMeta::getCustomCssContent("custom") ?></style>
</head>
<body>