Commit 36a7c72a authored by Saucy's avatar Saucy

Fix: Corrected navigation CSS active class

parent 6edf2fbe
Pipeline #7488624 passed with stage
in 1 minute and 34 seconds
{% assign modules = site.pages | where: 'nav', true | sort: 'title' %}
{% for module in modules %}
{% assign slug_url = page.url | remove: '/' %}
{% assign slug_title = page.title | slugify %}
{% if slug_url == slug_title %}
{% assign url = page.url | remove: '/' %}
{% else %}
{% assign url = page.url | remove: '/' | remove: slug_title %}
{% endif %}
{% assign url = page.url | replace: '/',' ' | truncatewords: 1 | remove: '...' %}
{% assign location = module.url | remove: '/' %}
{% assign slug = module.title | slugify %}
{% assign slug = module.title | slugify %}
{% if slug == 'dnd' %}
{% assign title = 'D&D' %}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment