Committed at the Behesh of Frenchie, I haven't been keeping a good changelog
[planet-ucc.git] / XHTMLWriter.py
index 99300ba..caa01f3 100644 (file)
@@ -27,6 +27,8 @@ class XHTMLWriter:
                output  +=      '<div class="itembody">\n'
                output  +=      item.contents
                output  +=      '\n</div>\n'
+               if item.commentsURL:
+                       output += '<p class="comments"><a href="%s">Comments</a></p>' % item.commentsURL
                output  +=      '</div>\n'
                return output
        
@@ -40,6 +42,9 @@ class XHTMLWriter:
                output  +=      '<title>Planet UCC</title>\n'
                output  +=      '<link rel="stylesheet" href="planet.css" type="text/css" media="screen" />\n'
                output  +=      '<link rel="icon" type="image/png" href="icon.png" />\n'
+               output  +=      '<link rel="SHORTCUT ICON" type="image/png" href="icon.png" />\n'
+               output  +=      '<link rel="alternate" type="application/rss+xml" title="RSS 1.0" href="rss1.xml" />\n'
+               output  +=      '<link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="rss2.xml" />\n'
                output  +=      '</head>\n'
                output  +=      '<body>\n'
                output  +=      '<div class="header">\n'
@@ -90,7 +95,8 @@ class XHTMLWriter:
                return output
        
        def __blog_sort__(self, blog1, blog2):
-               name1, name2    = blog1.blogName.split(' ')[-1], blog2.blogName.split(' ')[-1]
+               # name1, name2  = blog1.blogName.split(' ')[-1], blog2.blogName.split(' ')[-1]
+               name1, name2 = blog1.blogName, blog2.blogName
                if name1 < name2: return -1
                if name1 == name2: return 0
                if name1 > name2: return 1

UCC git Repository :: git.ucc.asn.au