文章页自定义script脚本

This commit is contained in:
Meekdai 2023-08-13 21:10:22 +08:00
parent 0cc7c863c3
commit 8f344506ba
2 changed files with 7 additions and 0 deletions

View File

@ -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

View File

@ -102,4 +102,7 @@ function iFrameLoading(){
}
</script>
{{ blogBase['script'] }}
{% endblock %}