-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex-digest.html
148 lines (141 loc) · 5.62 KB
/
index-digest.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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
---
layout: post-index
title: "Welcome to my Tech Blog"
description: "Describe this nonsense."
tags: [Jekyll, theme, themes, responsive, blog, modern]
comments: false
---
<div class="row">
<div class="col-sm-6 col-md-4 col-lg-4">
<div class="thumbnail head-thumbnail-item">
<div class="img">
<img src="{{ "/img/calculator.jpg" | prepend: site.baseurl }}" alt="税后工资计算器">
</div>
<div class="caption">
<h3>税后工资计算器</h3>
<p>一款简洁、无广告的最新税收政策计算器,快速对比改革前后交税变化</p>
<p><a href="#" class="btn btn-default" role="button">计算我的税后工资</a></p>
</div>
</div>
</div>
<div class="col-sm-6 col-md-4 col-lg-4">
<div class="thumbnail head-thumbnail-item">
<div class="img">
<img src="{{ "/img/idocument.jpg" | prepend: site.baseurl }}" alt="iDocument">
</div>
<div class="caption">
<h3>iDocument</h3>
<p>收集与 Java 开发相关的文档,包括基础系统服务(大数据、流计算、NoSQL 等)、专业名词、jar 包、开发工具等文档</p>
<p><a href="https://github.com/kenttanl/iDocuments" class="btn btn-default" role="button">查看更多</a></p>
</div>
</div>
</div>
<div class="col-sm-6 col-md-4 col-lg-4">
<div class="thumbnail head-thumbnail-item">
<div class="img">
<img src="{{ "/img/csdn-blog.jpg" | prepend: site.baseurl }}" alt="iDocument">
</div>
<div class="caption">
<h3>CSDN Blog</h3>
<p>一个不定时更新的 CSDN 博客</p>
<p><a href="https://blog.csdn.net/t894690230" class="btn btn-default" role="button">查看更多</a></p>
</div>
</div>
</div>
</div>
{% for post in site.posts %}
{% capture this_year %}{{ post.date | date: "%Y" }}{% endcapture %}
{% capture next_year %}{{ post.previous.date | date: "%Y" }}{% endcapture %}
{% if forloop.first %}
<article>
<h2 id="{{ this_year }}-ref">Posts in {{ this_year }}</h2>
<ul>
{% endif %}
<li class="entry-title"><a href="{{ site.baseurl }}{{ post.url }}" title="{{ post.title }}">{{ post.title }}</a></li>
{% if forloop.last %}
</ul>
</article>
{% else %}
{% if this_year != next_year %}
</ul>
</article>
<article>
<h2 id="{{ next_year }}-ref" class="year-heading">Posts in {{next_year}}</h2>
<ul>
{% endif %}
{% endif %}
{% endfor %}
{% for post in paginator.posts %}
<article class="hentry">
<header>
{% if post.image.feature %}
<div class="entry-image-index">
<a href="{{ site.baseurl }}{{ post.url }}" title="{{ post.title }}"><img src="{{ site.baseurl }}/images/{{ post.image.feature }}" alt="{{ post.title }}"></a>
</div><!-- /.entry-image -->
{% endif %}
<div class="entry-meta">
<span class="entry-date date published updated"><time datetime="{{ post.date | date_to_xmlschema }}"><a href="{{ site.baseurl }}{{ post.url }}">{{ post.date | date: "%Y-%m-%d" }}</a></time></span><span class="author vcard"><span class="fn"><a href="{{ site.baseurl }}/about/" title="About {{ site.owner.name }}">{{ site.owner.name }}</a></span></span>
{% if site.leancloud.enable %}
<span id="{{ post.url }}" class="leancloud_visitors" data-flag-title="{{ post.title }}">
<span class="post-meta-divider"> | </span>
<span class="post-meta-item-text"> 阅读: </span>
<span class="leancloud-visitors-count"></span>
</span>
{% endif %}
{% if site.reading_time %}
<span class="entry-reading-time">
<i class="fa fa-clock-o"></i>
{% assign readtime = post.content | number_of_words | divided_by:site.words_per_minute %}
Reading time ~{% if readtime <= 1 %}1 minute{% else %}{{ readtime }} minutes{% endif %}
</span><!-- /.entry-reading-time -->
{% endif %}
</div><!-- /.entry-meta -->
{% if post.link %}
<h1 class="entry-title post-link"><a href="{{ site.baseurl }}{{ post.url }}" class="permalink" rel="bookmark" title="{{ post.title }}"><i class="fa fa-bookmark"></i></a> <a href="{{ post.link }}">{{ post.title }}</a></h1>
{% else %}
<h1 class="entry-title post-link"><a href="{{ site.baseurl }}{{ post.url }}" rel="bookmark" title="{{ post.title }}" itemprop="url">{{ post.title }}</a></h1>
{% endif %}
</header>
<div class="entry-content">
{% if post.content contains "<!-- more -->" %}
{{ post.content | split:"<!-- more -->" | first % }}
{% else %}
{{ post.content | strip_html | truncate:200 }}
{% endif %}
</div><!-- /.entry-content -->
</article><!-- /.hentry -->
{% endfor %}
<div class="pagination w-100">
{% if paginator.previous_page %}
{% if paginator.previous_page == 1 %}
<a href="{{ site.baseurl }}" class="btn">Previous</a>
{% else %}
<a href="{{ site.baseurl }}/page{{ paginator.previous_page }}" class="btn">Previous</a>
{% endif %}
{% else %}
Previous
{% endif %}
<ul class="inline-list">
<li>
{% if paginator.page == 1 %}
<span class="current-page">1</span>
{% else %}
<a href="{{ site.baseurl }}">1</a>
{% endif %}
</li>
{% for count in (2..paginator.total_pages) %}
<li>
{% if count == paginator.page %}
<span class="current-page">{{ count }}</span>
{% else %}
<a href="{{ site.baseurl }}/page{{ count }}">{{ count }}</a>
{% endif %}
</li>
{% endfor %}
</ul>
{% if paginator.next_page %}
<a href="{{ site.baseurl }}/page{{ paginator.next_page }}" class="btn">Next</a>
{% else %}
Next
{% endif %}
</div><!-- /.pagination -->