diff --git a/README.md b/README.md index 60fa0b3b..a99efe20 100644 --- a/README.md +++ b/README.md @@ -55,12 +55,6 @@ And later you can update the submodule in your site directory to the latest comm git submodule update --remote --merge ``` -Or this shell command: - -```bash -sh themes/FixIt/fixit_checker.sh -``` - ## Why choose FixIt The FixIt theme inherits the excellent features of themes such as LoveIt, and adds new features and optimizations on those basis, as detailed in [Features](#features). In addition, the FixIt theme has the following advantages: diff --git a/README.zh-cn.md b/README.zh-cn.md index 10fd1202..777300c3 100644 --- a/README.zh-cn.md +++ b/README.zh-cn.md @@ -57,12 +57,6 @@ git submodule add https://github.com/hugo-fixit/FixIt.git themes/FixIt git submodule update --remote --merge ``` -或者这条 shell 命令: - -```bash -sh themes/FixIt/fixit_checker.sh -``` - ## 为什么选择 FixIt FixIt 主题继承了 LoveIt 等主题的优秀功能,并在它们的基础上添加了新的功能与优化,详见 [特性](#特性)。除此之外,FixIt 主题还有以下优点: diff --git a/fixit_checker.sh b/fixit_checker.sh deleted file mode 100644 index 9ea2502e..00000000 --- a/fixit_checker.sh +++ /dev/null @@ -1,8 +0,0 @@ -#! /bin/bash -# author: Lruihao -# Copy this to your path use command: -# cat themes/FixIt/fixit_checker.sh > fixit_checker.sh -echo "Checking for FixIt updates ..." -git submodule update --remote --merge -git add themes/FixIt -git commit -m ":arrow_up: Chore: update FixIt theme version" \ No newline at end of file diff --git a/i18n/en.toml b/i18n/en.toml index f1ba5df2..f251101f 100644 --- a/i18n/en.toml +++ b/i18n/en.toml @@ -15,7 +15,7 @@ other = "You are using a development version of FixIt. Please consider using a s other = "Current environment is \"development\". The \"comment system\", \"CDN\" and \"fingerprint\" will be disabled." [quicklyUpgrade] -other = "Quickly upgrade use bash: cd themes/FixIt && sh fixit_checker.sh" +other = "Quickly upgrade use command: " # === init === # === baseof === diff --git a/i18n/zh-CN.toml b/i18n/zh-CN.toml index 5866c030..f38fb6bd 100644 --- a/i18n/zh-CN.toml +++ b/i18n/zh-CN.toml @@ -16,7 +16,7 @@ other = "您正在使用开发版的 FixIt,请考虑使用稳定版。\n见 ht other = "当前运行环境是“development”。“评论系统”,“CDN”和“fingerprint”不会启用。" [quicklyUpgrade] -other = "使用命令快速升级:cd themes/FixIt && sh fixit_checker.sh" +other = "使用命令快速升级:" # === init === # === baseof === diff --git a/i18n/zh-TW.toml b/i18n/zh-TW.toml index bf812fdc..68f3600c 100644 --- a/i18n/zh-TW.toml +++ b/i18n/zh-TW.toml @@ -16,7 +16,7 @@ other = "您正在使用開發版的 FixIt,請考慮使用穩定版。\n見 ht other = "當前運行環境是“development”。“評論系統”,“CDN”和“fingerprint”不會啟用。" [quicklyUpgrade] -other = "使用命令快速升級:cd themes/FixIt && sh fixit_checker.sh" +other = "使用命令快速升級:" # === init === # === baseof === diff --git a/layouts/partials/init/detection-version.html b/layouts/partials/init/detection-version.html index 4c380416..b8e632ef 100644 --- a/layouts/partials/init/detection-version.html +++ b/layouts/partials/init/detection-version.html @@ -23,8 +23,9 @@ {{- warnf "FixIt %v\n%v\n\n" $version (T "RCVersionWarn") -}} {{- end -}} {{- if (gt $latest $version) -}} - {{- warnf "FixIt %v (⬆️ %v)\n%v\n\n" $version $latest (T "quicklyUpgrade") -}} + {{- warnf "FixIt %v (⬆️ %v)\n%v`git submodule update --remote --merge`\n\n" $version $latest (T "quicklyUpgrade") -}} {{- end -}} {{- end -}} +{{- warnf "FixIt %v (⬆️ %v)\n%v`git submodule update --remote --merge`\n\n" $version $latest (T "quicklyUpgrade") -}} {{- .Scratch.Set "latest" $latest -}}