From da2a141ae9eb9d26a08a2c466c1cf69800e17a4d Mon Sep 17 00:00:00 2001 From: Holger Weiss Date: Mon, 14 Oct 2013 15:12:08 +0200 Subject: Mention RSS and Twitter feeds Mention our RSS and Twitter feeds on the first News page. diff --git a/web/macros.py b/web/macros.py index b108398..978a4e4 100644 --- a/web/macros.py +++ b/web/macros.py @@ -6,6 +6,11 @@ plugins_release = '1.5' mib_release = '1.0.1' release_notes = 'news/release-%s.html' % plugins_release.replace('.', '-') site_url = 'https://www.nagios-plugins.org/' +feeds = """These project news articles are also available as an [RSS +feed](rss.xml). Additional stuff is posted to [Twitter](https://twitter.com/), +so you might want to [follow us +there](https://twitter.com/intent/follow?screen_name=monitorplugins) as well.""" + page = { "description": "Standard monitoring plugins for Nagios and compatible monitoring solutions.", "keywords": "Nagios, Icinga, Shinken, Monitoring, Official, Plugins, Open, Source, Free, Software" @@ -93,9 +98,10 @@ def make_news_page(posts, current_index): source = list() if current_index == 0: title = 'News' + teaser = ['# ' + title, feeds] else: title = 'News Page %d' % (current_index + 1) - teaser = ['# ' + title] + teaser = ['# ' + title] for p in posts: timestamp = time.strptime(p.date, '%Y-%m-%d') date = time.strftime('%A, %B %-e, %Y', timestamp) -- cgit v0.10-9-g596f