From d83fb713f9fcdf113eb18d3ae7f2f2a5e744d1b8 Mon Sep 17 00:00:00 2001 From: Eyre_S Date: Mon, 10 May 2021 12:09:29 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=BA=86=20CHANNEL=20?= =?UTF-8?q?=E5=92=8C=20BRANCH=20=E5=A3=B0=E6=98=8E=EF=BC=8C=E6=9C=80?= =?UTF-8?q?=E4=B8=8B=E6=96=B9=E7=9A=84=E7=94=9F=E6=88=90=E5=99=A8=E7=8E=B0?= =?UTF-8?q?=E5=9C=A8=E4=BC=9A=E6=98=BE=E7=A4=BA=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 修改 constant 声明 - 添加了 CHANNEL 声明程序来源 - 添加了 BRANCH 声明程序所处的更新线 - 将 get_frontpage_generate_version 移动至 SiteMeta 中 - 将 bookshelf 的 getHtml 中的主容器声明和生成器声明移至上层 - 给生成器声明添加了一个灰色小字的版本号声明 - ph-Bookshelf 的为 VERSION at CHANNEL/BRANCH - gitbook 为 VERSION --- assets/gitbook-fix.css | 10 ++++++++++ constant.php | 12 ++++++------ index.php | 18 +++++++++++++++++- src/Data/SiteMeta.php | 5 +++++ src/Element/Bookshelf.php | 6 ++---- template/header.php | 3 +-- 6 files changed, 41 insertions(+), 13 deletions(-) diff --git a/assets/gitbook-fix.css b/assets/gitbook-fix.css index 9ea7dfe..5b3922f 100644 --- a/assets/gitbook-fix.css +++ b/assets/gitbook-fix.css @@ -68,3 +68,13 @@ .book-summary ul.summary div.summary-container.on + li.divider.block-end { transform: rotateX(180deg); } + +.book .book-summary ul.summary li span.annotation { + padding: 0; + font-size: 0.2em; + color: rgba(0, 0, 0, 0.2); +} + +.book .book-summary ul.summary li span.annotation:hover { + text-decoration: none !important; +} diff --git a/constant.php b/constant.php index e549144..c9c4e01 100644 --- a/constant.php +++ b/constant.php @@ -1,9 +1,9 @@
diff --git a/src/Data/SiteMeta.php b/src/Data/SiteMeta.php index fffcc61..de6d135 100644 --- a/src/Data/SiteMeta.php +++ b/src/Data/SiteMeta.php @@ -1,10 +1,15 @@ "; - $str .= $this->links->getHtml(); + $str = $this->links->getHtml(); $str .= "
  • "; $str .= $this->books->getHtml(); $str .= "
  • "; $str .= PageMeta::$book->getSummaryHtml(); - $str .= "
  • Generated with ph-Bookshelf
  • Front-End by GitBook
  • "; - $str .= ""; + $str .= ""; return $str; } diff --git a/template/header.php b/template/header.php index 32c3488..61117eb 100644 --- a/template/header.php +++ b/template/header.php @@ -1,4 +1,3 @@ - @@ -17,7 +16,7 @@ <?= PageMeta::getPageTitle() ?> - +