@register.inclusion_tag('zinnia/tags/dummy.html', takes_context=True)
def zinnia_breadcrumbs(context, root_name='', template='zinnia/tags/breadcrumbs.html'):
 path = context['request'].path
 context_object = get_context_first_object(context, ['object', 'category', 'tag', 'author'])
 context_page = context.get('page_obj')
 breadcrumbs = retrieve_breadcrumbs(path, context_object, context_page, root_name)
 return {'template': template, 'breadcrumbs': breadcrumbs}

@ register . inclusion_tag ( 'zinnia/tags/dummy.html' , takes_context = True ) def zinnia_breadcrumbs ( context , root_name = '' , template = 'zinnia/tags/breadcrumbs.html' ) : path = context [ 'request' ] . path context_object = get_context_first_object ( context , [ 'object' , 'category' , 'tag' , 'author' ] ) context_page = context . get ( 'page_obj' ) breadcrumbs = retrieve_breadcrumbs ( path , context_object , context_page , root_name ) return { 'template' : template , 'breadcrumbs' : breadcrumbs }
return a breadcrumb for the application .