Skip to content

Commit 6c6da00

Browse files
committed
fix top nav links
1 parent c7afc11 commit 6c6da00

File tree

1 file changed

+10
-13
lines changed

1 file changed

+10
-13
lines changed

docs/_layouts/default.html

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -21,19 +21,16 @@ <h1 id="site-title">Spore ModAPI Launcher Kit</h1>
2121

2222
<nav>
2323
<ul id="nav-bar">
24-
{% assign nav_items =
25-
[
26-
<!-- Add top-level pages here -->
27-
{"title": "Home", "url": "/"},
28-
{"title": "Info & Support", "url": "/support"},
29-
{"title": "For Mod Developers", "url": "/developers"}
30-
]
31-
%}
32-
{% for item in nav_items %}
33-
<li{% if page.url == item.url %} class="active"{% endif %}>
34-
<a href="{{ item.url }}">{{ item.title }}</a>
35-
</li>
36-
{% endfor %}
24+
<li{% if page.url == "/" %} class="active"{% endif %}>
25+
<a href="/">Home</a>
26+
</li>
27+
<li{% if page.url contains "/support" %} class="active"{% endif %}>
28+
<a href="/support">Info & Support</a>
29+
</li>
30+
<li{% if page.url contains "/developers" %} class="active"{% endif %}>
31+
<a href="/developers">For Mod Developers</a>
32+
</li>
33+
<!-- Add additional top-level nav links here by copying the above format -->
3734
</ul>
3835
</nav>
3936
</header>

0 commit comments

Comments
 (0)