mirror of https://github.com/Meekdai/Gmeek.git
文章页自定义script脚本
This commit is contained in:
parent
0cc7c863c3
commit
8f344506ba
4
Gmeek.py
4
Gmeek.py
|
|
@ -192,6 +192,10 @@ class GMEEK():
|
||||||
self.blogBase["postListJson"][postNum]["fontSize"]=str(postConfig["fontSize"])
|
self.blogBase["postListJson"][postNum]["fontSize"]=str(postConfig["fontSize"])
|
||||||
else:
|
else:
|
||||||
self.blogBase["postListJson"][postNum]["fontSize"]=""
|
self.blogBase["postListJson"][postNum]["fontSize"]=""
|
||||||
|
if "script" in postConfig:
|
||||||
|
self.blogBase["postListJson"][postNum]["script"]=str(postConfig["script"])
|
||||||
|
else:
|
||||||
|
self.blogBase["postListJson"][postNum]["script"]=""
|
||||||
|
|
||||||
thisTime=datetime.datetime.fromtimestamp(self.blogBase["postListJson"][postNum]["createdAt"])
|
thisTime=datetime.datetime.fromtimestamp(self.blogBase["postListJson"][postNum]["createdAt"])
|
||||||
thisYear=thisTime.year
|
thisYear=thisTime.year
|
||||||
|
|
|
||||||
|
|
@ -102,4 +102,7 @@ function iFrameLoading(){
|
||||||
}
|
}
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
{{ blogBase['script'] }}
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue