-
Notifications
You must be signed in to change notification settings - Fork 72
Expand file tree
/
Copy pathindex.html
More file actions
75 lines (65 loc) · 1.74 KB
/
index.html
File metadata and controls
75 lines (65 loc) · 1.74 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
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
---
layout: home
title: minixalpha
---
<div class="topbar">
<div class="topbar-button topbar-mine">
<a href="{{ site.url }}/index.html">minixalpha</a>
</div>
<div class="topbar-button">
<a href="{{ site.url }}/tags.html">标签</a>
</div>
<div class="topbar-button">
<a href="{{ site.url }}/projects.html">项目</a>
</div>
<div class="topbar-button">
<a href="{{ site.url }}/about.html">关于</a>
</div>
</div>
<div class="slogan">
「{{ site.motto }}」
</div>
<ul>
<div class="char-total-counter">
{% assign count = 0 %}
{% for post in site.posts %}
{% assign single_count = post.content | strip_html | strip_newlines | remove: " " | size %}
{% assign count = count | plus: single_count %}
{% endfor %}
{{ site.posts.size }}篇文章
{{ count }}字
</div>
{% for post in site.posts %}
<li class="post-line">
<a
class="post-title"
href="{{ site.baseurl }}{{ post.url }}">
{{ post.title }}
</a>
<a href="{{ site.baseurl }}{{ post.url }}">
<div class="post-summary">
{{ post.content | strip_html | truncate: 80, " ..." }}
</div>
</a>
<div class="post-info">
<div class="category-area">
{% for category in post.categories %}
<a href="{{ site.url }}/tags.html#{{ category }}">
<div class="category">
{{ category }}
</div>
</a>
{% endfor %}
</div>
<div class="right-info-area">
<div class="char-counter">
{{ post.content | strip_html | strip_newlines | remove: " " | size }}字
</div>
<div class="post-date">
{{ post.date | date: "%Y-%m-%d" }}
</div>
</div>
</div>
</li>
{% endfor %}
</ul>