Skip to content

Commit af6eb3b

Browse files
committed
fixed a bug in category
1 parent 808b507 commit af6eb3b

File tree

2 files changed

+5
-34
lines changed

2 files changed

+5
-34
lines changed

categories/index.html

-29
This file was deleted.

category/index.html

+5-5
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,21 @@
33
title: Categories
44
group: navigation
55
---
6-
<h3 class="heading text-center">Category</h3>
6+
<h3 class="heading text-right">Category</h3>
77

88

99
{% for category in site.categories %}
10-
<h2 id="{{ category[0] }}"><a href="#{{ category[0] }}">{{ category[0] }}</a></h2>
11-
<ul>
10+
<h2 class="text-right" id="{{ category[0] }}"><a href="#{{ category[0] }}">{{ category[0] }}</a></h2>
11+
<ul class="text-right">
1212
{% assign pages_list = category[1] %}
1313

1414
{% for node in pages_list %}
1515
{% if node.title != null %}
1616
{% if group == null or group == node.group %}
1717
{% if page.url == node.url %}
18-
<li class="active"><a href="{{ site.baseurl }}{{node.url}}" class="active">{{node.title}}</a></li>
18+
<a href="{{ site.baseurl }}{{node.url}}" class="active">{{node.title}}</a>
1919
{% else %}
20-
<li><a href="{{ site.baseurl }}{{node.url}}">{{node.title}}</a></li>
20+
<a href="{{ site.baseurl }}{{node.url}}">{{node.title}}</a>
2121
{% endif %}
2222
{% endif %}
2323
{% endif %}

0 commit comments

Comments
 (0)