Skip to content
This repository has been archived by the owner on Nov 16, 2022. It is now read-only.

Commit

Permalink
One more simplification
Browse files Browse the repository at this point in the history
  • Loading branch information
techtonik committed Jul 9, 2015
1 parent 55f8bdc commit b33df93
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions configure-aspen.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ def add_nav_current_to_context(dispatch_result, website):
path = dirname(path)
return {'nav_current': website.nav.by_fs.get(path, website.nav)}

def add_nav_next_to_context(state, website):
return {'nav_next': state['nav_current'].next_child}
def add_nav_next_to_context(nav_current, website):
return {'nav_next': nav_current.next_child}

add_nav_to_website(website)

Expand Down

0 comments on commit b33df93

Please sign in to comment.