forked from techjoomla/docs.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
29 lines (28 loc) · 932 Bytes
/
index.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
---
---
{% include header.html %}
<div class="wrapper space">
<section class="categories">
{% assign categories = site.categories | sort %}
{% for category in categories %}
{% assign name = category[0] %}
{% assign posts = category[1] %}
{% assign size = posts | size %}
<section class="category">
<h3>
<a href="{{ site.baseurl }}/category/{{ name | slugify }}">{{ name | replace: "-", " " }}</a>
</h3>
<ul>
{% assign tutorials = posts | sort: "title" %}
{% for tutorial in tutorials limit: 4 %}
<li><a href="{{ site.baseurl }}{{ tutorial.url }}">{% include document-icon.html icon=tutorial.type %}{{ tutorial.title }}</a></li>
{% endfor %}
{% if size > 4 %}
<li><a href="{{ site.baseurl }}/category/{{ name | slugify }}">{{ size | minus: 4 }} more...</a></li>
{% endif %}
</ul>
</section>
{% endfor %}
</section>
</div>
{% include footer.html %}