-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
110 lines (103 loc) · 4.97 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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
---
layout: default
menu: home
css: ['index.css', 'sidebar-popular-repo.css']
---
<section class="jumbotron">
<div class="container">
<h1 style="font-size: 21px;">
<a id="subtitle" href="/" title="{{ site.name }}">
{{ site.subtitle }}
</a>
</h1>
<div id="jumbotron-meta-info">
{% for nav in site.labels %}
<span class="meta-info-index hvr-grow">
<a href="{{ nav.href }}" title="{{ nav.label }}" target="{{ nav.target | default: _self }}">{{ nav.label }}</a>
</span>
{% endfor %}
</div>
</div>
</section>
<section class="content container">
<div class="row">
<!-- Post List -->
<div class="col-md-8">
<ol class="post-list">
{% for post in site.posts %}
{% if paginator.page == 1 %}
{% if post.topmost == true %}
<li class="post-list-item">
<h2 class="post-list-title">
<a class="hvr-underline-from-center" href="{{ site.baseurl }}{{ post.url }}"><span style="color: red;">[置顶]</span>
<font style="line-height: 1.5 !important;">{{ post.title }}</font></a>
</h2>
<p class="post-list-description">
{{ post.excerpt | strip_html | strip }}
</p>
<p class="post-list-meta">
<span class="meta-info">
<span class="octicon octicon-calendar"></span> {{ post.date | date: "%Y/%m/%d %T" }}
</span>
{% for category in post.categories %}
{% if category.size == 0 %}
{% unless category contains "," %}
<span class="octicon octicon-file-directory"></span> <a href="{{site.baseurl}}/categories/{{ category|downcase|replace: ' ', '-'|replace: '+', ''|replace: '.', '' }}">{{category}}</a>
{% endunless %}
{% elsif category.size > 0 %}
{% if forloop.index == 1 %}
<span class="octicon octicon-file-directory"></span>
{% for cat in category %}
<a style="background: #6a9fb5;color: #fff;border-radius: 3px;padding: 0 2px;" href="{{site.baseurl}}/categories/{{ cat|downcase|replace: ' ', '-'|replace: '+', ''|replace: '.', '' }}">{{cat}}</a>
{% endfor %}
{% endif %}
{% else %}
{% endif %}
{% endfor %}
</p>
</li>
{% endif %}
{% endif %}
{% endfor %}
{% for post in paginator.posts %}
{% if post.topmost != true %}
<li class="post-list-item">
<h2 class="post-list-title">
<a class="hvr-underline-from-center" href="{{ site.baseurl }}{{ post.url }}">{{ post.title }}</a>
</h2>
<p class="post-list-description">
{{ post.excerpt | strip_html | strip }}
</p>
<p class="post-list-meta">
<span class="meta-info">
<span class="octicon octicon-calendar"></span> {{ post.date | date: "%Y/%m/%d %T" }}
</span>
{% for category in post.categories %}
{% if category.size == 0 %}
{% unless category contains "," %}
<span class="octicon octicon-file-directory"></span> <a href="{{site.baseurl}}/categories/{{category|downcase|replace: ' ', '-'|replace: '+', ''|replace: '.', ''}}">{{category}}</a>
{% endunless %}
{% elsif category.size > 0 %}
{% if forloop.index == 1 %}
<span class="octicon octicon-file-directory"></span>
{% for cat in category %}
<a style="background: #6a9fb5;color: #fff;border-radius: 3px;padding: 0 2px;" href="{{site.baseurl}}/categories/{{cat|downcase|replace: ' ', '-'|replace: '+', ''|replace: '.', ''}}">{{cat}}</a>
{% endfor %}
{% endif %}
{% else %}
{% endif %}
{% endfor %}
</p>
</li>
{% endif %}
{% endfor %}
</ol>
<!-- pagination -->
{% include pagination.html %}
</div>
<!-- side repos -->
<div class="col-md-4">
{% include sidebar-popular-repo.html %}
</div>
</div>
</section>