diff options
author | Gareth Rees <gareth@mysociety.org> | 2015-03-25 17:09:13 +0000 |
---|---|---|
committer | Gareth Rees <gareth@mysociety.org> | 2015-04-07 16:25:06 +0100 |
commit | 0653a7221244efe1de90def4cf55da1cc954d246 (patch) | |
tree | 13158733fccee43a3f4f2633ead0af0f8d33f710 | |
parent | 081236fe1374b2c7c3a7f41bcc4c6002f2a7b7b2 (diff) |
Remove 'es' from breadcrumbs
-rw-r--r-- | _layouts/es/fullwidth.html | 2 | ||||
-rw-r--r-- | _layouts/es/page.html | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/_layouts/es/fullwidth.html b/_layouts/es/fullwidth.html index f2b3e1d4d..925147cc7 100644 --- a/_layouts/es/fullwidth.html +++ b/_layouts/es/fullwidth.html @@ -3,7 +3,7 @@ layout: es/default --- <div class="page-wrapper"> <div class="page"> -{% capture url_parts %} {{ page.url | remove: "/index.html" | replace:'/'," " }}{% endcapture %} +{% capture url_parts %} {{ page.url | remove: "/index.html" | remove: "/es" | replace:'/'," " }}{% endcapture %} {% capture num_parts %}{{ url_parts | number_of_words | minus: 1 }}{% endcapture %} {% assign previous="" %} <ul class="breadcrumb"> diff --git a/_layouts/es/page.html b/_layouts/es/page.html index ee0fe4b29..22382bf9e 100644 --- a/_layouts/es/page.html +++ b/_layouts/es/page.html @@ -5,7 +5,7 @@ layout: es/default <div class="page-wrapper"> <div class="page"> - {% capture url_parts %} {{ page.url | remove: "/index.html" | replace:'/'," " }}{% endcapture %} + {% capture url_parts %} {{ page.url | remove: "/index.html" | remove: "/es" | replace:'/'," " }}{% endcapture %} {% assign parts = url_parts | split: ' ' %} {% assign previous="" %} <ul class="breadcrumb"> |