From 0026d858060a0ffb1a0911e7b317fc240b27755c Mon Sep 17 00:00:00 2001 From: wes Date: Mon, 14 Aug 2017 13:25:15 -0400 Subject: [PATCH] fix social links --- src/scripts/social.tag | 4 ++-- src/website.py | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) 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([]) }