Skip to content

Instantly share code, notes, and snippets.

@timbroder
Created October 21, 2011 21:09
Show Gist options
  • Save timbroder/1304986 to your computer and use it in GitHub Desktop.
Save timbroder/1304986 to your computer and use it in GitHub Desktop.
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