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/ --- web/macros.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'web/macros.py') 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 v1.2.3-74-g34f1