]> git.sommitrealweird.co.uk Git - sommitrealweird.git/blobdiff - sommitrealweird/bpcms/context_processors.py
Change blog to Blog in the bread crumb
[sommitrealweird.git] / sommitrealweird / bpcms / context_processors.py
index 3668ab008dfdb475cf6400ec7b900b1a1c7318e9..a78976df893f1f919eff7a92b6f959b431bcb3b5 100644 (file)
@@ -101,7 +101,10 @@ def content_submenu(request):
     }
 
 def content_breadcrumb(request):
     }
 
 def content_breadcrumb(request):
-    breadcrumb = [{'url': settings.BPCMS_ROOT, 'title': settings.BPCMS_ROOT},]
+    if settings.BPCMS_ROOT == "/":
+        breadcrumb = [{'url': settings.BPCMS_ROOT, 'title': "Home"}]
+    else:
+        breadcrumb = [{'url': settings.BPCMS_ROOT, 'title': settings.BPCMS_ROOT},]
     # find where we are in the tree first
     folderpath = request.path
     folderpath = re.sub(u'^%s' %(settings.BPCMS_ROOT), '', folderpath)
     # find where we are in the tree first
     folderpath = request.path
     folderpath = re.sub(u'^%s' %(settings.BPCMS_ROOT), '', folderpath)