# HG changeset patch # User Paul Boddie # Date 1206405082 -3600 # Node ID 2be39de0f2097a331dda47c7c1b66071e152c5b2 # Parent f4c1e25b9edc560170153286d29359dcf15aa20d Added link elements for the blog, suggested by Ren? Dudfield. diff -r f4c1e25b9edc -r 2be39de0f209 ep2008.py --- a/ep2008.py Mon Mar 24 20:28:57 2008 +0100 +++ b/ep2008.py Tue Mar 25 01:31:22 2008 +0100 @@ -70,4 +70,10 @@ contribute_string = u'Contribute to this site!' special_username = 0 # show simple username or contribute string for login + # RSS links for the blog. + extra_rss = u''' + +''' + # vim: tabstop=4 expandtab shiftwidth=4 diff -r f4c1e25b9edc -r 2be39de0f209 themes/ep2008/ep2008.py --- a/themes/ep2008/ep2008.py Mon Mar 24 20:28:57 2008 +0100 +++ b/themes/ep2008/ep2008.py Tue Mar 25 01:31:22 2008 +0100 @@ -2,7 +2,7 @@ """ MoinMoin - ep2008 (EuroPython 2008) theme - @copyright: 2003-2007 by Nir Soffer, Thomas Waldmann, Paul Boddie + @copyright: 2003-2008 by Nir Soffer, Thomas Waldmann, Paul Boddie @license: GNU GPL (v2 or later), see COPYING.txt for details. """ @@ -14,6 +14,23 @@ name = "ep2008" + def rsslink(self): + """ Create rss link in head, used by FireFox + + RSS link for FireFox. This shows an rss link in the bottom of + the page and let you subscribe to the wiki rss feed. + + @rtype: unicode + @return: html head + """ + + if self.shouldUseRSS(): + extra_rss = self.cfg.extra_rss + else: + extra_rss = u'' + + return ThemeBase.rsslink(self) + u'\n' + extra_rss + def header(self, d, **kw): """ Assemble wiki header