#NEWLINE# def breadcrumb( self , page ) : #NEWLINE# #INDENT# ' Generate breadcrumb from page hierarchy.\n            e.g. page github/mikidown will be shown as:\n            <a>github</a> / <a>mikidown</a>\n        ' #NEWLINE# parts = page . split ( '/' ) #NEWLINE# crumb = '<a href="/">Index</a>' #NEWLINE# for i in range ( len ( parts ) ) : #NEWLINE# #INDENT# crumb += ' / ' #NEWLINE# crumb += ( ( ( ( '<a href="/notes/' + '/' . join ( parts [ 0 : ( i + 1 ) ] ) ) + '.html">' ) + parts [ i ] ) + '</a>' ) #NEWLINE# #UNINDENT# return crumb