-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
86 lines (71 loc) · 2.63 KB
/
index.html
File metadata and controls
86 lines (71 loc) · 2.63 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
76
77
78
79
80
81
82
83
84
85
86
---
layout: default
background: '/img/bg-index.jpg'
---
<!-- Page Header -->
{% if page.background %}
<header class="masthead" style="background-image: url('{{ page.background | prepend: site.baseurl | replace: '//', '/' }}')">
{% else %}
<header class="masthead">
{% endif %}
<div class="overlay"></div>
<div class="container">
<div class="row">
<div class="col-lg-8 col-md-10 mx-auto">
<div class="page-heading">
<h1>{{ site.title }}</h1>
{% if site.description %}
<span class="subheading">{{ site.description }}</span>
{% endif %}
</div>
</div>
</div>
</div>
</header>
<div class="container">
<div class="row">
<div class="col-md-7 offset-md-2">
<!-- Home Post List -->
{% for post in paginator.posts %}
<article class="post-preview">
<a href="{{ post.url | prepend: site.baseurl | replace: '//', '/' }}">
<h2 class="post-title">{{ post.title }}</h2>
{% if post.subtitle %}
<blockquote class="list-subtitle">{{ post.subtitle }}</blockquote>
{% else %}
<blockquote class="list-subtitle">{{ post.excerpt | strip_html | truncatewords: 15 }}</blockquote>
{% endif %}
</a>
<p class="post-meta">{{ post.date | date: '%B %d, %Y' }} · {% include read_time_zh.html content=post.content %}
</p>
</article>
<hr>
{% endfor %}
<!-- Pager -->
{% if paginator.total_pages > 1 %}
<div class="clearfix">
{% if paginator.previous_page %}
<a class="btn btn-primary float-left" href="{{ paginator.previous_page_path | prepend: site.baseurl | replace: '//', '/' }}">←
Newer<span class="d-none d-md-inline"> Posts</span></a>
{% endif %}
{% if paginator.next_page %}
<a class="btn btn-primary float-right" href="{{ paginator.next_page_path | prepend: site.baseurl | replace: '//', '/' }}">Older<span class="d-none d-md-inline"> Posts</span> →</a>
{% endif %}
</div>
{% endif %}
</div>
<div class="col-md-3 sidebar-container">
<section class="sticky-top">
<hr class="hidden-sm hidden-xs">
<h5><a href="/tags/">FEATURED TAGS</a></h5>
<div class="tags">
{% for tag in site.tags %}
{% if tag[1].size > site.featured_tags_threshold %}
<a href="/tags/#{{ tag[0] }}" title="{{ tag[0] }}" rel="{{ tag[1].size }}">{{ tag[0] }}</a>
{% endif %}
{% endfor %}
</div>
</section>
</div>
</div>
</div>