mirror of
https://github.com/twbs/bootstrap.git
synced 2025-01-29 21:52:22 +01:00
append trailing slash to slug so that page name matching is more accurate
This commit is contained in:
parent
2c80f4d7cd
commit
e17a767a4c
@ -1,7 +1,7 @@
|
|||||||
<nav class="bd-links" id="docsNavbarContent">
|
<nav class="bd-links" id="docsNavbarContent">
|
||||||
{% for group in site.data.nav %}
|
{% for group in site.data.nav %}
|
||||||
{% assign link = group.pages | first %}
|
{% 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 %}
|
{% assign active = nil %}
|
||||||
|
|
||||||
{% if page.url contains slug %}
|
{% if page.url contains slug %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user