don't display breadcrumb when there is only one element
This commit is contained in:
parent
c2ffbce005
commit
930d99901e
|
@ -31,6 +31,10 @@ def decorate(body, response):
|
|||
|
||||
body = '\n'.join((section_title, page_title, body))
|
||||
|
||||
if hasattr(response, 'breadcrumb') and response.breadcrumb:
|
||||
if len(response.breadcrumb) == 1:
|
||||
response.breadcrumb = None
|
||||
|
||||
return wcs_decorate(body, response)
|
||||
|
||||
template.decorate = decorate
|
||||
|
|
Reference in New Issue