forked from q549130180/blog
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
75 lines (72 loc) · 2.45 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
---
layout: post-index
title:
description: "Java技术博客,核心IT技术包括:Java,JavaWeb,Redis,Linux,JavaScript等方向的技术文章."
tags: [Jekyll, java, redis, IT博客, blog, Linux, JavaScript, Hadoop]
comments: false
section-type: index
image:
feature: posts_header/103288842-p0.webp
credit:
creditlink:
---
<!-- 按文章内部的时间进行排序 -->
{% assign sorted_post = paginator.posts | sort:"modified" %}
<!--循环首页文章-->
{% for post in sorted_post reversed %}
<!-- 过滤掉隐藏的文章 -->
{% if post.hide != true %}
<article class="hentry">
<header>
<div class="entry-meta">
<!--添加文章日期、作者等信息-->
<span class="entry-date date published updated">
<time datetime="{{ post.date | date_to_xmlschema }}">
<a href="{{ site.url }}{{ post.url }}">{{ post.date | date: "%B %d, %Y" }}</a>
</time>
</span>
<span class="author vcard">
<span class="fn">
<a href="{{ site.url }}/about/" title="About {{ site.owner.name }}">{{ site.owner.name }}</a>
</span>
</span>
<!--添加阅读时间-->
{% if site.reading_time %}
<span class="entry-reading-time">
<i class="fa fa-clock-o"></i>
{% include read-time-index.html %}
</span><!-- /.entry-reading-time -->
{% endif %}
</div><!-- /.entry-meta -->
<!-- 文章标题 -->
<h1 class="entry-title">
<a href="{{ site.url }}{{ post.url }}" rel="bookmark" title="{{ post.title }}" itemprop="url">{{ post.title }}</a>
</h1>
</header>
<!-- blog首页文章的展示,只展示文章的简单描述,而不是显示全部文章 -->
<div class="entry-content">
{{ post.description }}
<!--{{ post.content }}-->
</div><!-- /.entry-content -->
<div class="entry-meta">
<span class="entry-tags">
<!--添加标签-->
{% for tag in post.tags %}
<a href="{{ site.url }}/tags/#{{ tag }}" title="Pages tagged {{ tag }}" class="tag" style="font-size: .75rem;">
<span class="term">{{ tag }}</span>
</a>
{% endfor %}
<!-- 首页展示,添加评论计数 -->
<div class="comments-count">
{% if site.disqus_shortname %}
<span></span>
<a href="{{ site.url }}{{ post.url }}#disqus_thread" class="comments-count-link">Comments</a>
{% endif %}
</div>
</span>
</div>
</article><!-- /.hentry -->
{% endif %}
{% endfor %}
<!--分页-->
{% include pagination.html %}