summaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
Diffstat (limited to 'web')
-rw-r--r--web/macros.py2
1 files changed, 2 insertions, 0 deletions
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):
111 return '\n'.join(abstract) + '\n\n' 111 return '\n'.join(abstract) + '\n\n'
112 112
113def make_news_footer(n_news_pages, current_index): 113def make_news_footer(n_news_pages, current_index):
114 if n_news_pages == 1:
115 return ''
114 footer = list() 116 footer = list()
115 if current_index != 0: 117 if current_index != 0:
116 previous = 'index' if current_index == 1 else str(current_index) 118 previous = 'index' if current_index == 1 else str(current_index)