Permalink
Browse files

Attempted to tweak breadcrumb fix.

  • Loading branch information...
1 parent fd1ce17 commit 282597f5542a473de872da478e16b78e301cf374 @anjackson anjackson committed May 21, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 _layouts/default.html
View
@@ -32,7 +32,7 @@ <h2 id="project_tagline">Publishing open data about our web archives.</h2>
<div id="main_content_wrap" class="outer">
<section id="main_content" class="inner">
-{% capture url_parts %} {{ page.url | remove: "/index.html" | replace:'/'," " }}{% endcapture %}
+{% capture url_parts %} {{ page.url | remove: "/opendata" | replace:'/'," " }}{% endcapture %}
{% capture num_parts %}{{ url_parts | number_of_words | minus: 1 }}{% endcapture %}
{% assign previous="" %}
<ul>
@@ -41,7 +41,7 @@ <h2 id="project_tagline">Publishing open data about our web archives.</h2>
{% else %}
<li><a href="/">home</a> &#187; </li>
- {% for unused in [1..15] limit:num_parts %}
+ {% for unused in breadcrumb_list limit:num_parts %}
{% capture first_word %}{{ url_parts | truncatewords:1 | remove:"..."}}{% endcapture %}
{% capture previous %}{{ previous }}/{{ first_word }}{% endcapture %}

0 comments on commit 282597f

Please sign in to comment.