Skip to content
Permalink
Browse files
don’t assume index.html in crumbs (cc @Aeyoun)
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed Mar 7, 2015
1 parent d956c31 commit 704a720d2a2a38d90c77e35f7138f6bc4aeca4e5
@@ -5,7 +5,13 @@
<nav class="breadcrumbs">
<ul class="breadcrumb">
{% for link, text in crumbs %}
<li><a href="{{ link }}">{{ text }}</a></li>
{% if text != index_file %}
{% if link == '#' %}
<li>{{ text }}</li>
{% else %}
<li><a href="{{ link }}">{{ text }}</a></li>
{% endif %}
{% endif %}
{% endfor %}
</ul>
</nav>
@@ -5,7 +5,7 @@
<nav class="breadcrumbs">
<ul class="breadcrumb">
% for link, text in crumbs:
% if text != 'index.html':
% if text != index_file:
% if link == '#':
<li>${text}</li>
% else:
@@ -713,6 +713,7 @@ def __init__(self, **config):
self._GLOBAL_CONTEXT['annotations'] = self.config['ANNOTATIONS']
self._GLOBAL_CONTEXT['index_display_post_count'] = self.config[
'INDEX_DISPLAY_POST_COUNT']
self._GLOBAL_CONTEXT['index_file'] = self.config['INDEX_FILE']
self._GLOBAL_CONTEXT['use_bundles'] = self.config['USE_BUNDLES']
self._GLOBAL_CONTEXT['use_cdn'] = self.config.get("USE_CDN")
self._GLOBAL_CONTEXT['favicons'] = self.config['FAVICONS']

0 comments on commit 704a720

Please sign in to comment.