Mercurial > hg > bitsyblog
changeset 24:7505329b3134
fix nlinks issue
author | k0s <k0scist@gmail.com> |
---|---|
date | Sat, 31 Oct 2009 00:22:26 -0400 |
parents | bf314b9a261a |
children | 62c961bb91e6 |
files | bitsyblog/templates/blog.html |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/bitsyblog/templates/blog.html Sat Oct 31 00:17:42 2009 -0400 +++ b/bitsyblog/templates/blog.html Sat Oct 31 00:22:26 2009 -0400 @@ -23,7 +23,7 @@ <!-- blog navigation --> <div class="navigation" - py:if="n_links == 0 or len(blog) > 1" + py:if="n_links and len(blog) > 1" py:with="_n_links = (n_links != -1) and n_links or len(blog)"> <ul> <li py:for="index in range(_n_links)"