Example #1
0
def single_blog_post_by_permalink(permalink):
    post = db.find_one({'permalink': permalink})
    return render_template('post/single_blog_post.html', post=post)
Example #2
0
def about_me():
    about_me = db.find_one({'title':'About Me'},collection='static')
    return render_template('about.html', about_me=about_me)
Example #3
0
def single_blog_post_by_id(post_id):
    post = db.find_one({'post_id': post_id})
    return render_template('post/single_blog_post.html', post=post)