From bcb76093654b1273a6cc2050b6efe2b8b1c6b349 Mon Sep 17 00:00:00 2001 From: Holger Weiss Date: Mon, 14 Oct 2013 11:44:34 +0200 Subject: Cosmetics: s/abstract/teaser/ diff --git a/web/input/news/release-1-5.md b/web/input/news/release-1-5.md index f2d130e..ed70d8c 100644 --- a/web/input/news/release-1-5.md +++ b/web/input/news/release-1-5.md @@ -5,7 +5,7 @@ date: 2013-10-02 The Nagios Plugins Development Team is proud to announce version 1.5 of the Nagios Plugins! This release comes with the new `check_dbi` plugin written by Sebastian Harl, and includes lots of enhancements and fixes provided by more -than forty contributors. Many thanks to all of you! +than forty contributors. Many thanks to all of you! Special kudos go to Sven Nierlein for fixing numerous bugs, reviewing many pull requests, bringing our test suite back into shape, and setting up diff --git a/web/macros.py b/web/macros.py index fa1b87a..b108398 100644 --- a/web/macros.py +++ b/web/macros.py @@ -89,26 +89,26 @@ def hook_preconvert_news(): pages.append(p) def make_news_page(posts, current_index): - marker = '' + marker = '' source = list() if current_index == 0: title = 'News' else: title = 'News Page %d' % (current_index + 1) - abstract = ['# ' + title] + teaser = ['# ' + title] for p in posts: timestamp = time.strptime(p.date, '%Y-%m-%d') date = time.strftime('%A, %B %-e, %Y', timestamp) - abstract.append('## %s' % p.title) - abstract.append('*%s*' % date) - abstract.append('%s' % p.source.split(marker, 1)[0]) - abstract.append('Read more »' % p.url) + teaser.append('## %s' % p.title) + teaser.append('*%s*' % date) + teaser.append('%s' % p.source.split(marker, 1)[0]) + teaser.append('Read more »' % p.url) source.append('# %s' % p.title) source.append('*%s*' % date) source.append(p.source.replace(marker, '', 1)) p.source = '\n'.join(source) p['parent'] = title - return '\n'.join(abstract) + '\n\n' + return '\n'.join(teaser) + '\n\n' def make_news_footer(n_news_pages, current_index): if n_news_pages == 1: -- cgit v0.10-9-g596f