Created
October 21, 2011 21:09
-
-
Save timbroder/1304986 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
prev = total_posts - (start - count) + 1 | |
if prev > total_posts: | |
prev = None | |
next = total_posts - (start + count) + 1 | |
if next < 1: | |
next = None | |
#showing single post | |
if count == 1: | |
link = 'post' | |
title = feed.entry[0].title.text | |
#listing posts | |
else: | |
link = 'posts' | |
title = 'home' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment