@app.context_processor
def inject_recent_posts():
    p_order = Post.pubdate.desc()
    recent_posts = get_posts(None, p_order)[0:10]
    return dict(recent_posts=recent_posts)
Add most recent post list to template context
dataset/ETHPy150Open jkossen/imposter/frontend.py/inject_recent_posts