forked from indymedia/epicyon
debug
parent
e547e24a68
commit
502d7ad9c5
|
@ -5018,29 +5018,29 @@ def htmlBlogPost(baseDir: str,httpPrefix: str,translate: {}, \
|
|||
print("Test cssFilename loaded 2")
|
||||
blogStr=htmlHeader(cssFilename,blogCSS)
|
||||
|
||||
print("Test cssFilename loaded 3")
|
||||
print("Test cssFilename loaded 3 "+blogStr)
|
||||
if postJsonObject['object'].get('summary'):
|
||||
blogStr+='<h1>'+postJsonObject['object']['summary']+'</h1>'
|
||||
blogStr+='<h1>'+postJsonObject['object']['summary']+'</h1>\n'
|
||||
|
||||
print("Test cssFilename loaded 4")
|
||||
print("Test cssFilename loaded 4 "+blogStr)
|
||||
if postJsonObject['object'].get('published'):
|
||||
if 'T' in postJsonObject['object']['published']:
|
||||
blogStr+='<h3>'+postJsonObject['object']['published'].split('T')[0]+'</h3>'
|
||||
blogStr+='<h3>'+postJsonObject['object']['published'].split('T')[0]+'</h3>\n'
|
||||
|
||||
print("Test cssFilename loaded 5")
|
||||
print("Test cssFilename loaded 5 "+blogStr)
|
||||
if postJsonObject['object'].get('content'):
|
||||
contentStr=addEmbeddedElements(translate,postJsonObject['object']['content'])
|
||||
if postJsonObject['object'].get('tag'):
|
||||
contentStr= \
|
||||
replaceEmojiFromTags(contentStr, \
|
||||
postJsonObject['object']['tag'],'content')
|
||||
blogStr+=contentStr
|
||||
blogStr+=contentStr+'\n'
|
||||
|
||||
print("Test cssFilename loaded 6")
|
||||
blogStr+='<hr>'
|
||||
print("Test cssFilename loaded 6 "+blogStr)
|
||||
blogStr+='<hr>\n'
|
||||
blogStr+= \
|
||||
'<p class="about"><a href="'+httpPrefix+'://'+domain+ \
|
||||
'/users/'+nickname+'">'+translate['About the author']+'</a></p>'
|
||||
'/users/'+nickname+'">'+translate['About the author']+'</a></p>\n'
|
||||
|
||||
print("Test blogStr="+blogStr)
|
||||
return blogStr+htmlFooter()
|
||||
|
|
Loading…
Reference in New Issue