From 8bb18f02df67126c79ce8119e00bcd0af927344c Mon Sep 17 00:00:00 2001 From: CleanThat Date: Sun, 23 Oct 2022 01:47:23 +0000 Subject: Add default Cleanthat configuration --- cleanthat.yaml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 cleanthat.yaml diff --git a/cleanthat.yaml b/cleanthat.yaml new file mode 100644 index 0000000..85a6f9f --- /dev/null +++ b/cleanthat.yaml @@ -0,0 +1,15 @@ +syntax_version: "2021-08-02" +meta: + labels: + - "cleanthat" + refs: + branches: + - "refs/heads/develop" + - "refs/heads/main" + - "refs/heads/master" +source_code: + excludes: [] + includes: [] + encoding: "UTF-8" + line_ending: "UNKNOWN" +languages: [] -- cgit v1.2.3 From 49daad0a19feb36fa8cf615dea3b7e4cd69fd81c Mon Sep 17 00:00:00 2001 From: Jui-Ch'i Lau <21096362+KurococLiu@users.noreply.github.com> Date: Tue, 21 Feb 2023 00:53:38 +0800 Subject: =?UTF-8?q?=F0=9F=90=9B=20Fix:=20=E4=BF=AE=E5=A4=8DICP=E5=A4=87?= =?UTF-8?q?=E6=A1=88=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- libs/Matcha.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libs/Matcha.php b/libs/Matcha.php index 7044d85..b606840 100644 --- a/libs/Matcha.php +++ b/libs/Matcha.php @@ -372,6 +372,11 @@ class Matcha */ static public function footerInfo() { + //ICP备案号 + if (Helper::options()->icpNum!='') { + echo '
'; + echo ' '.Helper::options()->icpNum.' '; + } echo '
'; //字数统计 if (Helper::options()->EnableWordsCounter=='able') { -- cgit v1.2.3 From 7b689049fef04d71dbf86f2df25c738b168257e8 Mon Sep 17 00:00:00 2001 From: Jui-Ch'i Lau <21096362+KurococLiu@users.noreply.github.com> Date: Tue, 21 Feb 2023 01:06:37 +0800 Subject: =?UTF-8?q?=F0=9F=8F=83=20Perf:=20=E6=9B=BF=E6=8D=A2WordsCounter?= =?UTF-8?q?=E7=9A=84=E4=BB=93=E5=BA=93=E9=93=BE=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 4046411..587f7b8 100644 --- a/README.md +++ b/README.md @@ -72,7 +72,7 @@ Matcha 主题采用[语义化版本 2.0.0](https://semver.org/lang/zh-CN/) 标 - [BracketDown](https://github.com/BigCoke233/typecho-plugin-BracketDown):语法拓展插件,如果想要在文章里使用短代码就需要安装这个插件 - [CopyDog](https://github.com/BigCoke233/typecho-plugin-CopyDog):版权狗插件,可以在文章末尾生成一个显示版权信息的卡片 - [ExSearch](https://github.com/AlanDecode/Typecho-Plugin-ExSearch):搜索增强插件 _1.2.0-beta.1 及以后版本支持_ -- [WordsCounter](https://github.com/elatisy/Typecho_WordsCounter):字数统计插件,可以统计全站的字数 +- [WordsCounter](https://github.com/KurococLiu/Typecho_WordsCounter):字数统计插件,可以统计全站的字数 _为Matcha重新微调的版本_ ## 鸣谢 -- cgit v1.2.3 From 9c6a6c0de50de4ba66ca88de242b398218d8f825 Mon Sep 17 00:00:00 2001 From: Jui-Ch'i Lau <21096362+KurococLiu@users.noreply.github.com> Date: Tue, 21 Feb 2023 01:16:27 +0800 Subject: =?UTF-8?q?:+1:=20Perf:=20=E5=86=8D=E6=AC=A1=E9=80=82=E9=85=8D=20I?= =?UTF-8?q?SO=20639-3=20=E6=A0=87=E5=87=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- includes/head.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/head.php b/includes/head.php index ccadbf9..d90791c 100644 --- a/includes/head.php +++ b/includes/head.php @@ -1,6 +1,6 @@ - + -- cgit v1.2.3 From a3d046ee3f4c5e5e1df67f74312bd7fea7521978 Mon Sep 17 00:00:00 2001 From: Jui-Ch'i Lau <21096362+KurococLiu@users.noreply.github.com> Date: Wed, 1 Mar 2023 02:29:48 +0800 Subject: =?UTF-8?q?=F0=9F=93=B0=20Add:=20=E6=94=AF=E6=8C=81umami=E7=BB=9F?= =?UTF-8?q?=E8=AE=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 1 + libs/Matcha.php | 4 ++++ libs/Options.php | 2 ++ 3 files changed, 7 insertions(+) diff --git a/README.md b/README.md index 587f7b8..26eefa3 100644 --- a/README.md +++ b/README.md @@ -88,6 +88,7 @@ Matcha 主题采用[语义化版本 2.0.0](https://semver.org/lang/zh-CN/) 标 [Fluidbox](http://terrymun.github.io/Fluidbox/demo/index.html) | [Throttle-Debounce](https://benalman.com/projects/jquery-throttle-debounce-plugin/) | [tocbot.js](https://tscanlin.github.io/tocbot/) +[umami](https://github.com/umami-software/umami) #### 矢量图 diff --git a/libs/Matcha.php b/libs/Matcha.php index b606840..2ab0978 100644 --- a/libs/Matcha.php +++ b/libs/Matcha.php @@ -393,6 +393,10 @@ class Matcha } //附加信息 if (Helper::options()->footerInfo!='') echo ''; + //umami + if (Helper::options()->umamiID!='') { + echo ''; + } } /** diff --git a/libs/Options.php b/libs/Options.php index ef12f80..935a7be 100644 --- a/libs/Options.php +++ b/libs/Options.php @@ -59,6 +59,8 @@ function themeConfig($form) { $form->addInput($icpNum); $startDate = new Typecho_Widget_Helper_Form_Element_Text('startDate', NULL, date('Y-m-d'), _t('网站建立日期'), _t('用于显示在页脚的版权信息,以及计算网站建立时长,格式为 Y-m-d')); $form->addInput($startDate); + $umamiID = new Typecho_Widget_Helper_Form_Element_Text('umamiID', NULL, NULL, _t('umami Website ID'), _t('在这里填入对应域名的 Umami Website ID(如 9caf0ded-6e8e-409c-9ds4-231fe253a8ac ),留空则不开启功能')); + $form->addInput($umamiID); /** * 进阶功能 -- cgit v1.2.3 From d3b9ea3d8400e16a278ad7128659fa2f6062e787 Mon Sep 17 00:00:00 2001 From: Jui-Ch'i Lau <21096362+KurococLiu@users.noreply.github.com> Date: Wed, 1 Mar 2023 02:33:38 +0800 Subject: =?UTF-8?q?=F0=9F=8F=83=20Perf:=20=E5=BE=AE=E8=B0=83=E9=A1=B5?= =?UTF-8?q?=E8=84=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- libs/Matcha.php | 1 - 1 file changed, 1 deletion(-) diff --git a/libs/Matcha.php b/libs/Matcha.php index 2ab0978..5e02a6f 100644 --- a/libs/Matcha.php +++ b/libs/Matcha.php @@ -377,7 +377,6 @@ class Matcha echo '
'; echo ' '.Helper::options()->icpNum.' '; } - echo '
'; //字数统计 if (Helper::options()->EnableWordsCounter=='able') { echo '书写了 '; -- cgit v1.2.3 From ce75d531299ea0f2a500d61586d2837bda0b31b5 Mon Sep 17 00:00:00 2001 From: Jui-Ch'i Lau <21096362+KurococLiu@users.noreply.github.com> Date: Wed, 1 Mar 2023 02:50:59 +0800 Subject: =?UTF-8?q?=F0=9F=8F=83=20Perf:=20=E5=BE=AE=E8=B0=83=E9=A1=B5?= =?UTF-8?q?=E8=84=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- libs/Matcha.php | 1 + 1 file changed, 1 insertion(+) diff --git a/libs/Matcha.php b/libs/Matcha.php index 5e02a6f..4783998 100644 --- a/libs/Matcha.php +++ b/libs/Matcha.php @@ -379,6 +379,7 @@ class Matcha } //字数统计 if (Helper::options()->EnableWordsCounter=='able') { + echo '
'; echo '书写了 '; WordsCounter_Plugin::allOfCharacters(); echo ' 字'; -- cgit v1.2.3