def special(ref): '''special pages''' row = get_entry_by_ref(ref, 'special') return render_template( 'post.html', title = row['title'], page = row, page_nav = None )
def show_note(ref): '''note pages''' row = get_entry_by_ref(ref, 'note') page_nav = { 'prev_href': None, 'next_href': None, 'index': "/notes/" } return render_template( 'post.html', title = row['title'], page = row, page_nav = page_nav )
def about(): '''about page''' row = get_entry_by_ref('about', 'special') # page history history_rows = get_entrylist_limit( 'history', current_app.config['NUM_HISTORY_ON_HOME'] ) return render_template( 'about.html', title = row['title'], page = row, history = history_rows, page_nav = None )