projects
/
geekigeeki.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
344a572
)
Fix atom for autogenerated pages.
author
Bernie Innocenti
<bernie@codewiz.org>
Sat, 18 Apr 2015 05:09:59 +0000
(
01:09
-0400)
committer
Bernie Innocenti
<bernie@codewiz.org>
Sat, 18 Apr 2015 05:09:59 +0000
(
01:09
-0400)
geekigeeki.py
patch
|
blob
|
history
diff --git
a/geekigeeki.py
b/geekigeeki.py
index f6163110b35b15c6b8d313158a8f42d9145303ca..7f54b4cbd7fb2ae3d80329d93cba07f1afbbd5b6 100755
(executable)
--- a/
geekigeeki.py
+++ b/
geekigeeki.py
@@
-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>')