#NEWLINE# def context( self ) : #NEWLINE# #INDENT# pages = [ p for p in self . site . pages ( ) if ( p . path . endswith ( '.html' ) and ( os . path . basename ( p . path ) != 'error.html' ) ) ] #NEWLINE# pages_by_path = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# for p in p : #NEWLINE# #INDENT# pages_by_path [ template_escape_path ( p . path ) ] = p #NEWLINE# #UNINDENT# return { #NEWLINE# #INDENT# 'CACTUS' : { #NEWLINE# #INDENT# 'pages' : pages , #NEWLINE# 'pages_by_path' : pages_by_path , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# }