From d5bad3949cb48e0a695c007ca51d4618d5a55225 Mon Sep 17 00:00:00 2001 From: Eyre_S Date: Mon, 22 Nov 2021 16:08:50 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E6=88=90=20books=20=E5=92=8C=20links?= =?UTF-8?q?=20=E5=88=97=E5=87=BA=EF=BC=8C=E6=9B=B4=E6=96=B0=E9=A1=B5?= =?UTF-8?q?=E5=B0=BE=E5=A3=B0=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 使 books 和 links 以特殊的链接组的样式显示 - 页尾添加了文章作者版权声明部分 - 现在版本号显示更加丰富了 - SiteMeta 添加获取当前版本的方法 - 更改了项目的 CHANNEL 名 --- assets/main.css | 16 ++++++++++++++++ constant.php | 2 +- src/Data/SiteMeta.php | 4 ++++ template/demo.html | 38 +++++++++++++++++++++++++++++++++----- 4 files changed, 54 insertions(+), 6 deletions(-) diff --git a/assets/main.css b/assets/main.css index 80c031c..0702d17 100644 --- a/assets/main.css +++ b/assets/main.css @@ -423,6 +423,22 @@ body { display: block; } +#sidebar > .menu-container > .menu#menu-metas > .menu-item-parent > *:first-child { + position: relative; +} + +#sidebar > .menu-container > .menu#menu-metas > .menu-item-parent > *:first-child:after { + position: absolute; + left: 0; + margin-left: -1rem; + color: inherit; +} + +#sidebar > .menu-container > .menu#menu-metas > .menu-item-parent > .children { + padding-left: 0; + border-left-width: 0; +} + /* /* diff --git a/constant.php b/constant.php index 67bc662..2a7a0dd 100644 --- a/constant.php +++ b/constant.php @@ -3,5 +3,5 @@ const APP_NAME = "ph-Bookshelf"; const VERSION = "0.3.0.1"; -const CHANNEL = "workshop-origin"; +const CHANNEL = "suk-ws"; const BRANCH = "master"; diff --git a/src/Data/SiteMeta.php b/src/Data/SiteMeta.php index b1454c7..7698bd9 100644 --- a/src/Data/SiteMeta.php +++ b/src/Data/SiteMeta.php @@ -11,6 +11,10 @@ class SiteMeta { return APP_NAME." ".VERSION; } + public static function getProgramVersion(): string { + return sprintf("%s @%s/%s", VERSION, CHANNEL, BRANCH); + } + /** * @throws Exception */ diff --git a/template/demo.html b/template/demo.html index fe5a72c..ff4cc03 100644 --- a/template/demo.html +++ b/template/demo.html @@ -1,10 +1,30 @@ +