From 2bdf27d225882a949658bdf73ed717a9eb9fb19e Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 7 Nov 2021 11:36:05 +0000 Subject: [PATCH] Tidying --- webapp_utils.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/webapp_utils.py b/webapp_utils.py index d8d14c796..38d944c8d 100644 --- a/webapp_utils.py +++ b/webapp_utils.py @@ -736,10 +736,6 @@ def htmlHeaderWithBlogMarkup(cssFilename: str, instanceTitle: str, """html header which includes blog post markup https://schema.org/BlogPosting """ - htmlStr = \ - htmlHeaderWithExternalStyle(cssFilename, instanceTitle, None, - systemLanguage) - authorUrl = localActorUrl(httpPrefix, nickname, domain) aboutUrl = httpPrefix + '://' + domain + '/about.html' @@ -769,7 +765,9 @@ def htmlHeaderWithBlogMarkup(cssFilename: str, instanceTitle: str, ' "description": "' + snippet + '"\n' + \ ' }\n' + \ ' \n' - htmlStr = htmlStr.replace('\n', '\n' + blogMarkup) + htmlStr = \ + htmlHeaderWithExternalStyle(cssFilename, instanceTitle, blogMarkup, + systemLanguage) return htmlStr