From d1a09181d90eef9e79406941db86096daa213df3 Mon Sep 17 00:00:00 2001 From: Holger Weiss Date: Mon, 14 Oct 2013 11:33:42 +0200 Subject: web/macros.py: Hide navigation on single News page Hide the News archive navigation as long as there's only a single News page. diff --git a/web/macros.py b/web/macros.py index 1f3ce68..fa1b87a 100644 --- a/web/macros.py +++ b/web/macros.py @@ -111,6 +111,8 @@ def make_news_page(posts, current_index): return '\n'.join(abstract) + '\n\n' def make_news_footer(n_news_pages, current_index): + if n_news_pages == 1: + return '' footer = list() if current_index != 0: previous = 'index' if current_index == 1 else str(current_index) -- cgit v0.10-9-g596f