forked from indymedia/epicyon
Make content warning style inactive on blog
parent
0a6489cffe
commit
2c671727ea
2
blog.py
2
blog.py
|
@ -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'
|
||||||
|
|
Loading…
Reference in New Issue