diff --git a/Gmeek.py b/Gmeek.py index 3fb3bdd..fd6acc8 100644 --- a/Gmeek.py +++ b/Gmeek.py @@ -61,7 +61,7 @@ def cleanFile(self): os.mkdir(self.post_dir) def defaultConfig(self): - dconfig={"startSite":"","filingNum":"","onePageListNum":15,"commentLabelColor":"#006b75","yearColorList":["#bc4c00", "#0969da", "#1f883d", "#A333D0"],"i18n":"CN","dayTheme":"light","nightTheme":"dark","urlMode":"pinyin","script":"","style":"","bottomText":""} + dconfig={"startSite":"","filingNum":"","onePageListNum":15,"commentLabelColor":"#006b75","yearColorList":["#bc4c00", "#0969da", "#1f883d", "#A333D0"],"i18n":"CN","dayTheme":"light","nightTheme":"dark","urlMode":"pinyin","script":"","style":"","bottomText":"","showPostSource":1} config=json.loads(open('config.json', 'r', encoding='utf-8').read()) self.blogBase={**dconfig,**config}.copy() self.blogBase["postListJson"]=json.loads('{}') diff --git a/templates/post.html b/templates/post.html index d852831..83bde0a 100644 --- a/templates/post.html +++ b/templates/post.html @@ -27,18 +27,20 @@ {% block header %}

{{ blogBase['postTitle'] }}

- + + {% if blogBase['showPostSource']==1 %} + {% endif %}