diff --git a/src/scripts/social.tag b/src/scripts/social.tag index 6206cf9..dc473d4 100644 --- a/src/scripts/social.tag +++ b/src/scripts/social.tag @@ -26,8 +26,8 @@ updateButton(_id, title) { if (_id == undefined) { _id = self.opts.postid; } - self.tweetHtml = ''; - self.fbHtml = '
'; + self.tweetHtml = ''; + self.fbHtml = '
'; self._id = _id; self.update(); } diff --git a/src/website.py b/src/website.py index d1dc65d..69514e2 100755 --- a/src/website.py +++ b/src/website.py @@ -65,10 +65,12 @@ def NeverWhere(configfile=None): # Set template variables to be injected @app.context_processor def inject_variables(): + postcontent = defaultdict(str) + postcontent["title"] = initial_post["title"] return { "quote" : quote, "postid" : initial_post["_id"], - "postcontent" : defaultdict(str), + "postcontent" : postcontent, "links" : dumps([]), "projects" : dumps([]) }