]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
append trailing slash to slug so that page name matching is more accurate
authorMark Otto <markdotto@gmail.com>
Mon, 24 Oct 2016 23:05:32 +0000 (16:05 -0700)
committerMark Otto <markdotto@gmail.com>
Mon, 24 Oct 2016 23:05:32 +0000 (16:05 -0700)
docs/_includes/nav-docs.html

index edd88f3453bb11ef0998e2564062a0469ebad21a..26507f161b0512823cda93e6e96bb7c15bfb5306 100644 (file)
@@ -1,7 +1,7 @@
 <nav class="bd-links" id="docsNavbarContent">
   {% for group in site.data.nav %}
   {% assign link = group.pages | first %}
-  {% assign slug = group.title | downcase | replace: ' ', '-' || page.title | downcase | replace: ' ', '-' %}
+  {% assign slug = group.title | downcase | replace: ' ', '-' || page.title | downcase | replace: ' ', '-' | append: '/' %}
   {% assign active = nil %}
 
   {% if page.url contains slug %}