Skip to content

Commit

Permalink
don’t assume index.html in crumbs (cc @Aeyoun)
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed Mar 7, 2015
1 parent d956c31 commit 704a720
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
8 changes: 7 additions & 1 deletion nikola/data/themes/base-jinja/templates/crumbs.tmpl
Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion nikola/data/themes/base/templates/crumbs.tmpl
Expand Up @@ -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:
Expand Down
1 change: 1 addition & 0 deletions nikola/nikola.py
Expand Up @@ -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']
Expand Down

0 comments on commit 704a720

Please sign in to comment.