修复首页title未生效
This commit is contained in:
parent
655569bbd4
commit
b326b0014d
10
Gmeek.py
10
Gmeek.py
@ -92,22 +92,14 @@ class GMEEK():
|
|||||||
post_body=self.markdown2html(f.read())
|
post_body=self.markdown2html(f.read())
|
||||||
f.close()
|
f.close()
|
||||||
|
|
||||||
postBase=json.loads('{}')
|
postBase=self.blogBase.copy()
|
||||||
postBase["postTitle"]=issue["postTitle"]
|
postBase["postTitle"]=issue["postTitle"]
|
||||||
postBase["postBody"]=post_body
|
postBase["postBody"]=post_body
|
||||||
postBase["title"]=self.blogBase["title"]
|
|
||||||
postBase["homeUrl"]=self.blogBase["homeUrl"]
|
|
||||||
postBase["postSourceUrl"]=issue["postSourceUrl"]
|
|
||||||
postBase["faviconUrl"]=self.blogBase["faviconUrl"]
|
|
||||||
postBase["filingNum"]=self.blogBase["filingNum"]
|
|
||||||
postBase["startSite"]=self.blogBase["startSite"]
|
|
||||||
postBase["i18n"]=self.blogBase["i18n"]
|
|
||||||
postBase["commentNum"]=issue["commentNum"]
|
postBase["commentNum"]=issue["commentNum"]
|
||||||
postBase["style"]=issue["style"]
|
postBase["style"]=issue["style"]
|
||||||
postBase["script"]=issue["script"]
|
postBase["script"]=issue["script"]
|
||||||
postBase["top"]=issue["top"]
|
postBase["top"]=issue["top"]
|
||||||
postBase["repoName"]=options.repo_name
|
postBase["repoName"]=options.repo_name
|
||||||
postBase["GMEEK_VERSION"]=options.Gmeek_version
|
|
||||||
|
|
||||||
file_loader = FileSystemLoader('templates')
|
file_loader = FileSystemLoader('templates')
|
||||||
env = Environment(loader=file_loader)
|
env = Environment(loader=file_loader)
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
{% extends 'base.html' %}
|
{% extends 'base.html' %}
|
||||||
{% block head %}
|
{% block head %}
|
||||||
<title>{{ blogBase['postTitle'] }}</title>
|
<title>{{ blogBase['title'] }}</title>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block style %}
|
{% block style %}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user