From 4af706b4d50d6738965650ad833913d633f11eac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=91=86=E7=93=9C=E4=BA=91?= Date: Mon, 31 Jul 2023 18:10:55 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=8E=A7=E5=88=B6=E5=8F=B0?= =?UTF-8?q?=E7=89=88=E6=9C=AC=E5=8F=B7=E8=BE=93=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Gmeek.py | 3 +++ plist_example.html | 2 ++ post_example.html | 1 + 3 files changed, 6 insertions(+) diff --git a/Gmeek.py b/Gmeek.py index 88e489e..7b14419 100644 --- a/Gmeek.py +++ b/Gmeek.py @@ -33,6 +33,7 @@ class GMEEK(): print(self.labelColorDict) self.blogBase=self.config.copy() + self.blogBase["GMEEK_VERSION"]=options.Gmeek_version self.blogBase["postListJson"]=json.loads('{}') def cleanFile(self): @@ -79,6 +80,7 @@ class GMEEK(): postBase["i18n"]=self.blogBase["i18n"] postBase["commentNum"]=issue["commentNum"] postBase["repoName"]=options.repo_name + postBase["GMEEK_VERSION"]=options.Gmeek_version f = open(gen_Html, 'w', encoding='UTF-8') f.write(self.post_example % json.dumps(postBase)) @@ -144,6 +146,7 @@ class GMEEK(): parser = argparse.ArgumentParser() parser.add_argument("github_token", help="github_token") parser.add_argument("repo_name", help="repo_name") +parser.add_argument("Gmeek_version", help="Gmeek_version") parser.add_argument("--issue_number", help="issue_number", default=0, required=False) options = parser.parse_args() diff --git a/plist_example.html b/plist_example.html index f42d8de..19cf84a 100644 --- a/plist_example.html +++ b/plist_example.html @@ -193,5 +193,7 @@ function modeSwitch(){ else{changeLight();localStorage.setItem("meek_theme","light");} } +console.log("\n %c Gmeek " + blogBase["GMEEK_VERSION"] + " %c https://github.com/Meekdai/Gmeek \n\n", "color: #fff; background-image: linear-gradient(90deg, rgb(47, 172, 178) 0%, rgb(45, 190, 96) 100%); padding:5px 1px;", "background-image: linear-gradient(90deg, rgb(45, 190, 96) 0%, rgb(255, 255, 255) 100%); padding:5px 0;"); + diff --git a/post_example.html b/post_example.html index bccef25..880b253 100644 --- a/post_example.html +++ b/post_example.html @@ -163,5 +163,6 @@ function iFrameLoading(){ } } +console.log("\n %c Gmeek " + blogBase["GMEEK_VERSION"] + " %c https://github.com/Meekdai/Gmeek \n\n", "color: #fff; background-image: linear-gradient(90deg, rgb(47, 172, 178) 0%, rgb(45, 190, 96) 100%); padding:5px 1px;", "background-image: linear-gradient(90deg, rgb(45, 190, 96) 0%, rgb(255, 255, 255) 100%); padding:5px 0;");