-
Notifications
You must be signed in to change notification settings - Fork 15
/
index.html
39 lines (37 loc) · 1.12 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
---
layout: page
---
{% include base.html %}
<div class="jumbotron">
<h1>{{ site.title }}</h1>
<p>{{ site.description }}</p>
</div>
<div class="row">
{% for tag in site.categories %}
{% assign cate = tag[0] %}
<div class="col-sm-4 col-md-3">
<div class="panel panel-primary">
<div class="panel-heading">
<a href="#tag[0]"></a>
{% if site.categorythemes[cate].name != null %}
<span class="tag-title" id="{{ tag[0] | slugify }}">{{site.categorythemes[cate].name}}</span>
{% else %}
<span class="tag-title" id="{{ tag[0] | slugify }}">{{ tag[0] | capitalize }}</span>
{% endif %}
</div>
<ul class="list-group">
{% assign pages_list = tag[1] %}
{% for post in pages_list reversed %}
{% if post.title != null %}
{% if group == null or group == post.group %}
<a class="list-group-item" href="{{ basepath }}{{ post.url }}">{{ post.title }}</a>
{% endif %}
{% endif %}
{% endfor %}
{% assign pages_list = nil %}
{% assign group = nil %}
</ul>
</div>
</div>
{% endfor %}
</div>