Skip to content
This repository has been archived by the owner on Sep 5, 2019. It is now read-only.

Commit

Permalink
Limits the news list on the homepage to two entries.
Browse files Browse the repository at this point in the history
Closes #28
  • Loading branch information
Denis Krienbühl committed Jul 28, 2015
1 parent f60d512 commit 67c691d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion onegov/town/views/homepage.py
Expand Up @@ -103,7 +103,7 @@ def view_town(self, request):
'title': self.name,
'tiles': tiles,
'news': request.exclude_invisible(
layout.root_pages[-1].news_query.limit(3).all(),
layout.root_pages[-1].news_query.limit(2).all(),
),
'panels': [
online_counter,
Expand Down

0 comments on commit 67c691d

Please sign in to comment.