forked from techjoomla/docs.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
37 lines (36 loc) · 1.06 KB
/
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
30
31
32
33
34
35
36
37
---
---
{% 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 }}/{{ name | downcase | slugify }}">{{ name | replace: "-", " "}}</a>
</h3>
<ul>
{% assign tutorials = posts | sort: "nav_ordering" %}
{% for tutorial in tutorials limit: 4 %}
{% if tutorial.showSidebar %}
{% if tutorial.published %}
<li>
<a href="{{ site.baseurl }}{{ tutorial.url }}">
{% include document-icon.html icon=tutorial.type %}{{ tutorial.title }}
</a>
</li>
{% endif %}
{% endif %}
{% 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 %}