diff options
author | Holger Weiss <holger@zedat.fu-berlin.de> | 2013-10-14 13:12:08 (GMT) |
---|---|---|
committer | Holger Weiss <holger@zedat.fu-berlin.de> | 2013-10-14 13:12:08 (GMT) |
commit | da2a141ae9eb9d26a08a2c466c1cf69800e17a4d (patch) | |
tree | a02e87d3b4f5e9addfb6ba8cbbcdecdf4c5b6f63 /web | |
parent | bcb76093654b1273a6cc2050b6efe2b8b1c6b349 (diff) | |
download | site-da2a141ae9eb9d26a08a2c466c1cf69800e17a4d.tar.gz |
Mention RSS and Twitter feeds
Mention our RSS and Twitter feeds on the first News page.
Diffstat (limited to 'web')
-rw-r--r-- | web/macros.py | 8 |
1 files changed, 7 insertions, 1 deletions
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' | |||
6 | mib_release = '1.0.1' | 6 | mib_release = '1.0.1' |
7 | release_notes = 'news/release-%s.html' % plugins_release.replace('.', '-') | 7 | release_notes = 'news/release-%s.html' % plugins_release.replace('.', '-') |
8 | site_url = 'https://www.nagios-plugins.org/' | 8 | site_url = 'https://www.nagios-plugins.org/' |
9 | feeds = """These project news articles are also available as an [RSS | ||
10 | feed](rss.xml). Additional stuff is posted to [Twitter](https://twitter.com/), | ||
11 | so you might want to [follow us | ||
12 | there](https://twitter.com/intent/follow?screen_name=monitorplugins) as well.""" | ||
13 | |||
9 | page = { | 14 | page = { |
10 | "description": "Standard monitoring plugins for Nagios and compatible monitoring solutions.", | 15 | "description": "Standard monitoring plugins for Nagios and compatible monitoring solutions.", |
11 | "keywords": "Nagios, Icinga, Shinken, Monitoring, Official, Plugins, Open, Source, Free, Software" | 16 | "keywords": "Nagios, Icinga, Shinken, Monitoring, Official, Plugins, Open, Source, Free, Software" |
@@ -93,9 +98,10 @@ def make_news_page(posts, current_index): | |||
93 | source = list() | 98 | source = list() |
94 | if current_index == 0: | 99 | if current_index == 0: |
95 | title = 'News' | 100 | title = 'News' |
101 | teaser = ['# ' + title, feeds] | ||
96 | else: | 102 | else: |
97 | title = 'News Page %d' % (current_index + 1) | 103 | title = 'News Page %d' % (current_index + 1) |
98 | teaser = ['# ' + title] | 104 | teaser = ['# ' + title] |
99 | for p in posts: | 105 | for p in posts: |
100 | timestamp = time.strptime(p.date, '%Y-%m-%d') | 106 | timestamp = time.strptime(p.date, '%Y-%m-%d') |
101 | date = time.strftime('%A, %B %-e, %Y', timestamp) | 107 | date = time.strftime('%A, %B %-e, %Y', timestamp) |