diff --git a/Gmeek.py b/Gmeek.py index 274f9ac..0a9d7f4 100644 --- a/Gmeek.py +++ b/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 diff --git a/templates/post.html b/templates/post.html index 64d9568..f957a88 100644 --- a/templates/post.html +++ b/templates/post.html @@ -102,4 +102,7 @@ function iFrameLoading(){ } + +{{ blogBase['script'] }} + {% endblock %}