From 1b69ea8bda18613fff38c2481e8b3b7debe34a72 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 8 Nov 2020 13:01:01 +0000 Subject: [PATCH] Article html tag on blog --- blog.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/blog.py b/blog.py index 96d52a1fc..19e572bcb 100644 --- a/blog.py +++ b/blog.py @@ -166,10 +166,12 @@ def htmlBlogPostContent(authorized: bool, if postJsonObject['object'].get('id'): messageLink = postJsonObject['object']['id'].replace('/statuses/', '/') titleStr = '' + articleAdded = False if postJsonObject['object'].get('summary'): titleStr = postJsonObject['object']['summary'] - blogStr += '

' + \ + blogStr += '

' + \ titleStr + '

\n' + articleAdded = True # get the handle of the author if postJsonObject['object'].get('attributedTo'): @@ -232,7 +234,10 @@ def htmlBlogPostContent(authorized: bool, contentStr = replaceEmojiFromTags(contentStr, postJsonObject['object']['tag'], 'content') - blogStr += '
' + contentStr + '\n' + if articleAdded: + blogStr += '
' + contentStr + '
\n' + else: + blogStr += '
' + contentStr + '
\n' citationsStr = '' if postJsonObject['object'].get('tag'):