(article)
return {
        'names': names,
        'title': article.title,
        'count': len(names) + 1
    }
获得文章面包屑
    :param article:
    :return:
获得文章面包屑
    :param article:
    :return:
获得文章面包屑 : param article : : return :
def load_breadcrumb(article):
    """
    获得文章面包屑
    :param article:
    :return:
    """
    names = article.get_category_tree()
    from djangoblog.utils import get_blog_setting
    blogsetting = get_blog_setting()
    site = get_current_site().domain
    names.append((blogsetting.sitename, '/'))
    names = names[::-1]

    return {
        'names': names,
        'title': article.title,
        'count': len(names) + 1
    }
def load_breadcrumb ( article ) : names = article . get_category_tree ( ) from djangoblog . utils import get_blog_setting blogsetting = get_blog_setting ( ) site = get_current_site ( ) . domain names . append ( ( blogsetting . sitename , '/' ) ) names = names [ : : - 1 ] return { 'names' : names , 'title' : article . title , 'count' : len ( names ) + 1 }