Update Gmeek.py
This commit is contained in:
parent
2915079ab3
commit
1372d195fc
10
Gmeek.py
10
Gmeek.py
@ -94,11 +94,6 @@ class GMEEK():
|
|||||||
post_body=self.markdown2html(f.read())
|
post_body=self.markdown2html(f.read())
|
||||||
f.close()
|
f.close()
|
||||||
|
|
||||||
if "highlight" in post_body:
|
|
||||||
postBase["highlight"]=1
|
|
||||||
else:
|
|
||||||
postBase["highlight"]=0
|
|
||||||
|
|
||||||
postBase=self.blogBase.copy()
|
postBase=self.blogBase.copy()
|
||||||
postBase["postTitle"]=issue["postTitle"]
|
postBase["postTitle"]=issue["postTitle"]
|
||||||
postBase["postBody"]=post_body
|
postBase["postBody"]=post_body
|
||||||
@ -108,6 +103,11 @@ class GMEEK():
|
|||||||
postBase["top"]=issue["top"]
|
postBase["top"]=issue["top"]
|
||||||
postBase["postSourceUrl"]=issue["postSourceUrl"]
|
postBase["postSourceUrl"]=issue["postSourceUrl"]
|
||||||
postBase["repoName"]=options.repo_name
|
postBase["repoName"]=options.repo_name
|
||||||
|
|
||||||
|
if "highlight" in post_body:
|
||||||
|
postBase["highlight"]=1
|
||||||
|
else:
|
||||||
|
postBase["highlight"]=0
|
||||||
|
|
||||||
self.renderHtml('post.html',postBase,{},issue["htmlDir"])
|
self.renderHtml('post.html',postBase,{},issue["htmlDir"])
|
||||||
print("create postPage title=%s file=%s " % (issue["postTitle"],issue["htmlDir"]))
|
print("create postPage title=%s file=%s " % (issue["postTitle"],issue["htmlDir"]))
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user