append trailing slash to slug so that page name matching is more accurate
This commit is contained in:
parent
2c80f4d7cd
commit
e17a767a4c
1 changed files with 1 additions and 1 deletions
|
|
@ -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 %}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue