diff --git a/sigal/themes/colorbox/templates/index.html b/sigal/themes/colorbox/templates/index.html
index 5a58ea6..6711daa 100644
--- a/sigal/themes/colorbox/templates/index.html
+++ b/sigal/themes/colorbox/templates/index.html
@@ -41,9 +41,9 @@
- {% if breadcumb %}
+ {% if breadcrumb %}
- {%- for url, title in breadcumb -%}
+ {%- for url, title in breadcrumb -%}
{{ title }}
{%- if not loop.last %} » {% endif -%}
{% endfor -%}
diff --git a/sigal/themes/galleria/templates/index.html b/sigal/themes/galleria/templates/index.html
index 80ba88c..3e1db48 100644
--- a/sigal/themes/galleria/templates/index.html
+++ b/sigal/themes/galleria/templates/index.html
@@ -31,9 +31,9 @@
{% endif %}
- {% if breadcumb %}
+ {% if breadcrumb %}
- {%- for url, title in breadcumb -%}
+ {%- for url, title in breadcrumb -%}
{{ title }}
{%- if not loop.last %} » {% endif -%}
{% endfor -%}
diff --git a/sigal/writer.py b/sigal/writer.py
index 4c9b948..3b41cc4 100644
--- a/sigal/writer.py
+++ b/sigal/writer.py
@@ -101,7 +101,7 @@ class Writer(object):
'theme': {'name': os.path.basename(self.theme)},
'medias': [],
'albums': [],
- 'breadcumb': ''
+ 'breadcrumb': ''
}
def copy_assets(self):
@@ -110,11 +110,11 @@ class Writer(object):
self.theme_path = os.path.join(self.output_dir, 'static')
copy_tree(os.path.join(self.theme, 'static'), self.theme_path)
- def get_breadcumb(self, paths, relpath):
+ def get_breadcrumb(self, paths, relpath):
"""Paths to upper directories (with titles and links)."""
tmp_path = relpath
- breadcumb = [((self.url_ext or '.'), paths[tmp_path]['title'])]
+ breadcrumb = [((self.url_ext or '.'), paths[tmp_path]['title'])]
while True:
tmp_path = os.path.normpath(os.path.join(tmp_path, '..'))
@@ -122,9 +122,9 @@ class Writer(object):
break
url = os.path.relpath(tmp_path, relpath) + '/' + self.url_ext
- breadcumb.append((url, paths[tmp_path]['title']))
+ breadcrumb.append((url, paths[tmp_path]['title']))
- return reversed(breadcumb)
+ return reversed(breadcrumb)
def generate_context(self, paths, relpath):
"""Generate the context dict for the given path."""
@@ -142,7 +142,7 @@ class Writer(object):
ctx['theme']['url'] = os.path.relpath(self.theme_path, path)
if relpath != '.':
- ctx['breadcumb'] = self.get_breadcumb(paths, relpath)
+ ctx['breadcrumb'] = self.get_breadcrumb(paths, relpath)
for i in paths[relpath]['medias']:
media_ctx = {}