Skip to content

Commit 4a2f4f8

Browse files
committed
show categories
1 parent 5909da1 commit 4a2f4f8

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

_includes/header.html

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,12 @@ <h1><a href="{{ site.baseurl }}/index.html">{{ site.title }}</a></h1>
88
<div id="menu">
99
<ul>
1010
<li><a href="index.html">Home</a></li>
11-
{% for my_page in site.pages %}
12-
{% if my_page.title and post.categories not contains 'wiki' %}
13-
<li><a href="{{ my_page.url | prepend: site.baseurl }}">{{ my_page.title }}</a></li>
14-
{% endif %}
11+
{% for category in site.categories %}
12+
{% for my_page in category %}
13+
{% if my_page.title %}
14+
<li>{{ category }}<a href="{{ my_page.url | prepend: site.baseurl }}">{{ my_page.title }}</a></li>
15+
{% endif %}
16+
{% endfor %}
1517
{% endfor %}
1618
<li><a href="#">Sign Up</a></li>
1719
<li><a href="#">Log In</a></li>

0 commit comments

Comments
 (0)