/
categories.html
37 lines (35 loc) · 1.07 KB
/
categories.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
---
layout: default
title: Categorias
---
<ul>
{% if site.categories.first[0] == null %}
{% for category in site.categories %}
<li><a href="{{ site.baseurl }}/categories.html#{{ category }}-ref">
{{ category | join: "/" }} <span>{{ site.categories[category].size }}</span>
</a></li>
{% endfor %}
{% else %}
{% for category in site.categories %}
<li><a href="{{ site.baseurl }}/categories.html#{{ category[0] }}-ref">
{{ category[0] | join: "/" }}
</a></li>
{% endfor %}
{% endif %}
</ul>
{% for category in site.categories %}
<h2 id="{{ category[0] }}-ref">{{ category[0] | join: "/" }}</h2>
<ul>
{% for node in category[1] %}
{% if node.title != null %}
{% if group == null or group == node.group %}
{% if page.url == node.url %}
<li class="active"><a href="{{ site.baseurl }}{{ node.url }}" class="active">{{node.title}}</a></li>
{% else %}
<li><a href="{{ site.baseurl }}{{ node.url }}">{{node.title}}</a></li>
{% endif %}
{% endif %}
{% endif %}
{% endfor %}
</ul>
{% endfor %}