Skip to content

Commit 5909da1

Browse files
committed
filtering by category
1 parent 941cd8e commit 5909da1

File tree

3 files changed

+1
-33
lines changed

3 files changed

+1
-33
lines changed

_includes/header.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ <h1><a href="{{ site.baseurl }}/index.html">{{ site.title }}</a></h1>
99
<ul>
1010
<li><a href="index.html">Home</a></li>
1111
{% for my_page in site.pages %}
12-
{% if my_page.title %}
12+
{% if my_page.title and post.categories not contains 'wiki' %}
1313
<li><a href="{{ my_page.url | prepend: site.baseurl }}">{{ my_page.title }}</a></li>
1414
{% endif %}
1515
{% endfor %}

wiki.html

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,9 @@ <h4>Wiki Pages</h4>
1414
<h3>
1515
<ul>
1616
{% for my_page in site.pageswiki %}
17-
{% if my_page.title %}
1817
<li>
1918
<a href="{{ my_page.url }}">{{ my_page.title }}</a>
2019
</li>
21-
{% endif %}
2220
{% endfor %}
2321
</ul>
2422

wiki/index.html

Lines changed: 0 additions & 30 deletions
This file was deleted.

0 commit comments

Comments
 (0)