rss icon at end of page

main
Bob Mottram 2020-02-27 20:27:44 +00:00
parent da60e16b83
commit eda4cae521
2 changed files with 7 additions and 6 deletions

12
blog.py
View File

@ -349,12 +349,6 @@ def htmlBlogPage(authorized: bool, session, \
navigateStr+='</p>' navigateStr+='</p>'
blogStr+=navigateStr blogStr+=navigateStr
# show rss link
blogStr+='<center><p class="rssfeed">'
blogStr+='<a href="'+httpPrefix+'://'+domainFull+'/blog/rss.xml">'
blogStr+='<img loading="lazy" alt="RSS" title="RSS" src="/'+iconsDir+'/rss.png" />'
blogStr+='</a></p></center>'
for item in timelineJson['orderedItems']: for item in timelineJson['orderedItems']:
if item['type']!='Create': if item['type']!='Create':
continue continue
@ -367,6 +361,12 @@ def htmlBlogPage(authorized: bool, session, \
if len(timelineJson['orderedItems'])>=noOfItems: if len(timelineJson['orderedItems'])>=noOfItems:
blogStr+=navigateStr blogStr+=navigateStr
# show rss link
blogStr+='<p class="rssfeed">'
blogStr+='<a href="'+httpPrefix+'://'+domainFull+'/blog/rss.xml">'
blogStr+='<img loading="lazy" alt="RSS" title="RSS" src="/'+iconsDir+'/rss.png" />'
blogStr+='</a></p>'
return blogStr+htmlFooter() return blogStr+htmlFooter()
return None return None

View File

@ -92,6 +92,7 @@ a:link {
.rssfeed img { .rssfeed img {
width: 5%; width: 5%;
float: right;
} }
.ssbaddr { .ssbaddr {