summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Weiss <holger@zedat.fu-berlin.de>2013-10-14 13:28:51 (GMT)
committerHolger Weiss <holger@zedat.fu-berlin.de>2013-10-14 13:28:51 (GMT)
commitbbc28f270f194bd581e0b7735bab82ad4ff201a0 (patch)
tree4592776a0b6e802100a1cb5f44d4a22d8445a328
parentd037f1fdabe8fbcc226d34c25f7e7814a56ccf26 (diff)
downloadsite-bbc28f270f194bd581e0b7735bab82ad4ff201a0.tar.gz
web/macros.py: Omit "index.html" from URL
Let the RSS feed reference <https://www.nagios-plugins.org/news/> instead of <https://www.nagios-plugins.org/news/index.html>.
-rw-r--r--web/macros.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/macros.py b/web/macros.py
index 2cf2c33..70d2d90 100644
--- a/web/macros.py
+++ b/web/macros.py
@@ -63,7 +63,7 @@ def hook_postconvert_rss():
63 items.append(_RSS_ITEM % (p.title, link, desc, date, link)) 63 items.append(_RSS_ITEM % (p.title, link, desc, date, link))
64 items = ''.join(items) 64 items = ''.join(items)
65 title = 'Nagios Plugins' 65 title = 'Nagios Plugins'
66 link = '%s/news/index.html' % site_url.rstrip('/') 66 link = '%s/news/' % site_url.rstrip('/')
67 desc = 'Announcements published by the Nagios Plugins Development Team.' 67 desc = 'Announcements published by the Nagios Plugins Development Team.'
68 date = email.utils.formatdate() 68 date = email.utils.formatdate()
69 rss = _RSS % (title, link, desc, date, date, items) 69 rss = _RSS % (title, link, desc, date, date, items)