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;");