diff --git a/blog.py b/blog.py index 96d52a1f..19e572bc 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'):