Skip to content

Commit 1a396d5

Browse files
authored
fix header
1 parent eb9678f commit 1a396d5

File tree

1 file changed

+27
-11
lines changed

1 file changed

+27
-11
lines changed

_layouts/default.html

Lines changed: 27 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -38,18 +38,34 @@
3838

3939
<header>
4040
<nav>
41+
42+
{% if page.url == "/" %}
43+
<a href="/" class="current">Home</a>
44+
{% else %}
45+
<a href="/">Home</a>
46+
{% endif %}
47+
48+
{% if page.url == "/community/" %}
49+
<a href="/community/" class="current">Community</a>
50+
{% else %}
51+
<a href="/community/">Community</a>
52+
{% endif %}
53+
54+
{% if page.url == "/events/" %}
55+
<a href="/events/" class="current">Events</a>
56+
{% else %}
57+
<a href="/events/">Events</a>
58+
{% endif %}
59+
60+
{% if page.url == "/projects/" %}
61+
<a href="/projects/" class="current">Projects</a>
62+
{% else %}
63+
<a href="/projects/">Projects</a>
64+
{% endif %}
4165

42-
<a href="/" {% if page.url = "/" %}class="current"{% endif %}>Home</a>
43-
44-
<a href="/community/" {% if page.url = "/community/" %}class="current"{% endif %}>Community</a>
45-
46-
<a href="/events/" {% if page.url = "/events/" %}class="current"{% endif %}>Events</a>
47-
48-
<a href="/projects/" {% if page.url = "/projects/" %}class="current"{% endif %}>Projects</a>
49-
50-
<a href="https://github.com/{{site.github}}">GitHub</a>
51-
52-
<a href="https://{{site.zulip}}.zulipchat.com">Zulip</a>
66+
<a href="https://github.com/{{site.github}}">GitHub</a>
67+
68+
<a href="https://{{site.zulip}}.zulipchat.com">Zulip</a>
5369

5470
</nav>
5571

0 commit comments

Comments
 (0)