Add rss link to individual blog posts

main
Bob Mottram 2020-02-27 20:40:51 +00:00
parent 971257b047
commit ccae33b315
1 changed files with 7 additions and 0 deletions

View File

@ -289,6 +289,13 @@ def htmlBlogPost(authorized: bool, \
nickname,domain,domainFull,postJsonObject, \
None,False)
# show rss link
iconsDir=getIconsDir(baseDir)
blogStr+='<p class="rssfeed">'
blogStr+='<a href="'+httpPrefix+'://'+domainFull+'/blog/'+nickname+'/rss.xml">'
blogStr+='<img loading="lazy" alt="RSS" title="RSS" src="/'+iconsDir+'/rss.png" />'
blogStr+='</a></p>'
return blogStr+htmlFooter()
return None