aboutsummaryrefslogtreecommitdiff
path: root/docs/_includes
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2016-10-24 16:05:32 -0700
committerMark Otto <[email protected]>2016-10-24 16:05:32 -0700
commite17a767a4c95fb724b65b926c9c619e3893f9447 (patch)
tree501a53b1a7cc233eb052b048d4bb6e7258d5627a /docs/_includes
parent2c80f4d7cdc3ed23daaafe8e0b008e29e583f42d (diff)
downloadbootstrap-e17a767a4c95fb724b65b926c9c619e3893f9447.tar.xz
bootstrap-e17a767a4c95fb724b65b926c9c619e3893f9447.zip
append trailing slash to slug so that page name matching is more accurate
Diffstat (limited to 'docs/_includes')
-rw-r--r--docs/_includes/nav-docs.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/_includes/nav-docs.html b/docs/_includes/nav-docs.html
index edd88f345..26507f161 100644
--- a/docs/_includes/nav-docs.html
+++ b/docs/_includes/nav-docs.html
@@ -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 %}