-
Notifications
You must be signed in to change notification settings - Fork 0
/
archive.html
48 lines (41 loc) · 1.08 KB
/
archive.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
38
39
40
41
42
43
44
45
46
47
48
---
---
{% assign posts = site.posts | sort: "title" %}
{% for post in site.posts %}
{% assign c = post.categories | join: "," %}
{% if c != "" %}
{% capture categories %}{{categories}},{{c}}{% endcapture %}
{% endif %}
{% endfor %}
{% assign categories = categories | split: "," | uniq | sort: self %}
<div class="wrapper">
<section>
<h1 class="docs-intro-title">
Site map
</h1>
<p class="docs-intro-desc">
</p>
</section>
<div>
{% for cat in categories %}
{% assign posts = site.categories[cat] %}
{% assign len = posts | size %}
{% if cat != 'releases' %}
{% if len > 0 %}
<h2 style="text-transform:capitalize;">
{{ cat | replace: "-", " " }} <span class="count">({{ posts | size }})</span>
</h2>
<ul>
{% assign posts_sorted = posts | sort: 'date' %}
{% for post in posts_sorted %}
<li>
<a href="{{ site.baseurl }}{{post.url}}">{{post.title}}</a>
<p>{{post.description}}</p>
</li>
{% endfor %}
</ul>
{% endif %}
{% endif %}
{% endfor %}
</div>
</div>