Fix atom for autogenerated pages.
authorBernie Innocenti <bernie@codewiz.org>
Sat, 18 Apr 2015 05:09:59 +0000 (01:09 -0400)
committerBernie Innocenti <bernie@codewiz.org>
Sat, 18 Apr 2015 05:09:59 +0000 (01:09 -0400)
geekigeeki.py

index f6163110b35b15c6b8d313158a8f42d9145303ca..7f54b4cbd7fb2ae3d80329d93cba07f1afbbd5b6 100755 (executable)
@@ -662,8 +662,9 @@ class Page:
             print(' <link rel="alternate" type="application/x-wiki" title="Edit this page" href="%s" />' \
                 % relative_url(name + '?a=edit', privileged=True))
 
-        print(' <link rel="alternate" type="application/atom+xml" title="Atom feed" href="%s" />' \
-            % relative_url(name + '?a=atom'))
+        if name:
+            print(' <link rel="alternate" type="application/atom+xml" title="Atom feed" href="%s" />' \
+                % relative_url(name + '?a=atom'))
 
         print('</head>')