-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
50 lines (50 loc) · 1.39 KB
/
index.html
File metadata and controls
50 lines (50 loc) · 1.39 KB
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
---
layout: default
---
<div class="container">
<h1>Categories</h1>
{% for c in site.data.categories %}
{% assign category_id = c[0] %}
{% assign category = c[1] %}
<div class="well">
<div class="row">
<div class="col-sm-8">
<h2>
<a href="/{{ category_id }}">
<i class="{{ category['icon'] }}"></i>
{{ category['name'] }}
{% if category.slogan %}
- {{ category.slogan }}
{% endif %}
</a>
<span class="badge alert-info">{{ category['language'] }}</span>
</h2>
</div>
<div class="col-sm-4 text-right">
<h2>
{% for platform in category['platforms'] %}
<a target="_blank" href="{{ platform[1] }}"><i class="fab fa-{{ platform[0] }}"></i></a>
{% endfor %}
<a target="_blank" href="/{{ category_id }}/feed.xml"><i class="fa fa-rss"></i></a>
</h2>
</div>
</div>
<p>
{{ category['description'] }}
</p>
<h3>Last Posts</h3>
{% for post in site.categories[category_id] limit:2 %}
<div class="well">
{% include post-summary.html %}
</div>
{% endfor %}
<div class="intro">
<p>
<a href="/{{ category_id }}">
See all posts <span class="badge alert-info">{{ site.categories[category_id].size }}</span>
</a>
</p>
</div>
</div>
{% endfor %}
</div>