Example #1
0
def blog_archive(request):
    """
    View which displays all blogs by date
    """
    cxt = {}
    entry_dict = build_blog_date_dict()
    cxt['entry_dict'] = entry_dict
    cxt['archive'] = True
    return render(request, 'blog/archive.html', cxt)
Example #2
0
def blog_sidebar_nav(context):
    archive = context.get('archive', False)
    tags = context.get('tags', False)
    entry_dict = build_blog_date_dict()
    return {'entry_dict': entry_dict, 'archive': archive, 'tags': tags}