This repository has been archived by the owner on Jun 14, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
90 lines (77 loc) · 3.16 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
---
sets:
- importante
permalink: /
---
<section>
{% for set_name in page.sets %}
{% assign set_file_name = "_sets/" | append: set_name | append: ".md" %}
{% assign set = site.sets | where: "path", set_file_name | first %}
{% assign series_posts = site.posts | where: "set", set_name | sort: "set_order" %}
<div class="featured-series">
<h2>{{ set.title }}</h2>
<p>{{ set.description }}</p>
{% include listings.html listings=series_posts custom_icon=true %}
</div>
{% endfor %}
</section>
<h2>Artículos por tema</h2>
<p>Un reportorio de Tutoriales, aplicaciones, FAQs e información adicional en constante crecimiento.</p>
<section class="categories">
{% assign tags = site.tags | sort %}
{% for tag in tags %}
{% assign name = tag[0] %}
{% assign posts = tag[1] %}
{% assign size = posts | size %}
{% if tag[0] contains "deepin-" %}
<section class="category">
{% assign cat-name = name | replace: "deepin-", " " | replace: "De", "de" | replace: "Y", "y" | strip %}
<h3>
<a href="{{ site.baseurl }}/{{ name | slugify }}/">{{ cat-name | replace: "-", " " | replace: "Y", "y" | replace: "De", "de" }}</a>
</h3>
<ul>
{% assign category-tutorials = site.data.categories[cat-name].featured %}
{% assign category-tutorials-size = category-tutorials | size %}
{% for tutorial in category-tutorials %}
{% assign permalink = "/deepin/" | append: tutorial | append: "/" %}
{% assign post = site.posts | where: "url", permalink | first %}
<li><a href="{{ site.baseurl }}{{ post.url }}">{% include document-icon.html icon=post.type %}{{ post.title }}</a></li>
{% endfor %}
{% if size > category-tutorials-size %}
<li><a href="{{ site.baseurl }}/{{ name | slugify }}/">{{ size | minus: category-tutorials-size }} más...</a></li>
{% endif %}
</ul>
</section>
{% endif %}
{% endfor %}
</section>
<h2>Aplicaciones según el uso</h2>
<p>Tenemos un catálogo de decenas de aplicaciones, para uso general o solo desarrolladores.</p>
<section class="categories">
{% assign tags = site.tags | sort %}
{% for tag in tags %}
{% assign name = tag[0] %}
{% assign posts = tag[1] %}
{% assign size = posts | size %}
{% if tag[0] contains "apps-" %}
<section class="category">
{% assign cat-name = name | replace: "apps-", " " | strip %}
<h3>
<a href="{{ site.baseurl }}/{{ name | slugify }}/">{{ cat-name | replace: "-", " " | replace: "Y", "y" | replace: "De", "de" }}</a>
</h3>
<ul>
{% assign category-tutorials = site.data.categories[cat-name].featured %}
{% assign category-tutorials-size = category-tutorials | size %}
{% for tutorial in category-tutorials %}
{% assign permalink = "/deepin/" | append: tutorial | append: "/" %}
{% assign post = site.posts | where: "url", permalink | first %}
<li><a href="{{ site.baseurl }}{{ post.url }}">{% include document-icon.html icon=post.type %}{{ post.title }}</a></li>
{% endfor %}
{% if size > category-tutorials-size %}
<li><a href="{{ site.baseurl }}/{{ name | slugify }}/">{{ size | minus: category-tutorials-size }} más...</a></li>
{% endif %}
</ul>
</section>
{% endif %}
{% endfor %}
</section>