Make content warning style inactive on blog

main
Bob Mottram 2020-02-25 21:32:04 +00:00
parent 0a6489cffe
commit 2c671727ea
1 changed files with 2 additions and 0 deletions

View File

@ -193,6 +193,7 @@ def htmlBlogPost(authorized: bool, \
with open(cssFilename, 'r') as cssFile: with open(cssFilename, 'r') as cssFile:
blogCSS=cssFile.read() blogCSS=cssFile.read()
blogStr=htmlHeader(cssFilename,blogCSS) blogStr=htmlHeader(cssFilename,blogCSS)
blogStr=blogStr.replace('.cwText','.cwTextInactive')
blogStr+= \ blogStr+= \
htmlBlogPostContent(authorized,baseDir,httpPrefix,translate, \ htmlBlogPostContent(authorized,baseDir,httpPrefix,translate, \
@ -218,6 +219,7 @@ def htmlBlogPage(authorized: bool, session, \
with open(cssFilename, 'r') as cssFile: with open(cssFilename, 'r') as cssFile:
blogCSS=cssFile.read() blogCSS=cssFile.read()
blogStr=htmlHeader(cssFilename,blogCSS) blogStr=htmlHeader(cssFilename,blogCSS)
blogStr=blogStr.replace('.cwText','.cwTextInactive')
blogsIndex= \ blogsIndex= \
baseDir+'/accounts/'+nickname+'@'+domain+'/tlblogs.index' baseDir+'/accounts/'+nickname+'@'+domain+'/tlblogs.index'