mirror of
https://github.com/tenrok/bootstrap.git
synced 2026-06-20 20:00:36 +03:00
append trailing slash to slug so that page name matching is more accurate
This commit is contained in:
@@ -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 %}
|
||||||
|
|||||||
Reference in New Issue
Block a user