def index(): pagetitle = BLOGNAME + " - a blog about code, systems, and infosec." indexfooter = Widget("indexfooter") entries = get_post_list() return render_template("index.html", pagetitle=pagetitle,\ blogname=BLOGNAME, entries=entries[0:INDEX_NUMPOSTS], indexfooter=indexfooter.get())
def about(): """ The 'About' Page for general information about the author and site """ pagetitle = BLOGNAME + " - about" aboutme = Widget('aboutme') aboutsite = Widget('aboutsite') contact = Widget('contact') bitcoin = Widget('about_bitcoin') return render_template("about.html", pagetitle=pagetitle,\ blogname=BLOGNAME, w_aboutme=aboutme.get(),\ w_contact=contact.get(), w_aboutsite=aboutsite.get(),\ w_bitcoin=bitcoin.get())