文章页自定义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"])
|
||||
else:
|
||||
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"])
|
||||
thisYear=thisTime.year
|
||||
|
||||
@ -102,4 +102,7 @@ function iFrameLoading(){
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
{{ blogBase['script'] }}
|
||||
|
||||
{% endblock %}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user