forked from Cyanoxygen/cyanoxygen.github.io.archived
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
143 lines (129 loc) · 5.08 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
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
---
layout: default
home-title: kjBot Dev Blog
description: A Light, Customizable CoolQ Bot Framework
---
{% include header.html %}
<style>
.sns-links-1 {
margin-top: 14px;
cursor: default;
display: flex;
justify-content: center;
}
.custom-li {
padding-left: 5px;
}
</style>
<div class="g-banner home-banner {{ site.theme-color | prepend: 'banner-theme-' }}" data-theme="{{ site.theme-color }}"
style="{% if page.header-img %}background: url({{ page.header-img | prepend: site.baseurl }}) no-repeat center center; background-size: cover;{% endif %}">
<h2>{{ page.home-title }}</h2>
<h3>{{ page.description }}</h3>
</div>
<main class="g-container home-content">
<div class="article-list">
{% for post in paginator.posts %}
<article class="article-item">
{% if post.cover %}
<div class="post-cover">
<a class="post-link" href="{{ post.url | prepend: site.baseurl }}" title="{{ post.title }}"></a>
<img src="{{ post.cover }}" href="{{ post.url | prepend: site.baseurl }}" alt="">
</div>
{% endif %}
<section class="post-preview">
<a class="post-link" href="{{ post.url | prepend: site.baseurl }}" title="{{ post.title }}"></a>
<h2 class="post-title">{{ post.title }}</h2>
{% if post.subtitle %}
<h3 class="post-subtitle">{{ post.subtitle }}</h3>
{% endif %}
{% if post.subtitle.size==0 or post.subtitle==nil %}
<p class="post-excerpt">{{ post.excerpt | strip_html | strip_newlines | truncate: 126}}</p>
{% endif %}
</section>
<footer class="post-meta">
<div class="post-tags">
{% if post.tags.size > 0 %}
{% for tag in post.tags %}
<a href={{ "tags.html#" | append: tag | pretend: site.baseurl}} class="post-tag">{{ tag }}</a>
{% endfor %}
{% endif %}
</div>
<time class="post-date" datetime="{{ post.date | date:"%y-%m-%d" }}">{{ post.date | date_to_string }}</time>
</footer>
</article>
{% endfor %}
{% if paginator.total_pages > 1 %}
{% include pageNav.html %}
{% endif %}
</div>
<aside class="g-sidebar-wrapper">
<div class="g-sidebar">
<section class="author-card">
<a href="/about.html">
<div class="avatar">
<img src="{{ site.avatar | prepend: site.baseurl }}" alt="">
</div>
<div class="author-name" rel="author">{{ site.author }}</div>
<div class="bio">
<p>{{ site.bio }}</p>
</a>
</div>
<!--<a href="/about.html">
<div class="avatar">
<img src="/assets/img/avatar.jpg" alt="">
</div>
<div class="author-name" rel="author">kjBot Devs</div>
<div class="bio">
<p>Full with love of development.</p>
</div>
</a>-->
{% if site.sns.size > 0 %}
<ul id="sns-links" class="sns-links-1">
<!-- Use FontAwesome -->
<!-- {% for s in site.sns %}
<li>
<a href="{{ s[1] }}" target="_blank">
<i class="iconfont icon-{{ s[0] }}"></i>
</a>
</li>
{% endfor %} -->
<li class="custom-li">
<a href="https://github.com/kjBot-Dev">
<span class="fa-stack fa-lg">
<i class="fa fa-circle fa-stack-2x"></i>
<i class="fab fa-github fa-stack-1x fa-inverse"></i>
</span>
</a>
</li>
<li class="custom-li">
<a href="https://jq.qq.com/?_wv=1027&k=5S9oYcC">
<span class="fa-stack fa-lg">
<i class="fa fa-circle fa-stack-2x"></i>
<i class="fab fa-qq fa-stack-1x fa-inverse"></i>
</span>
</a>
</li>
</ul>
{% endif %}
</section>
{% if site.recommend-tags and site.tags.size>0 %}
<section class="tags-card">
{% for tag in site.tags %}
{% if forloop.index > site.recommend-condition-size %}
{% break %}
{% endif %}
<a href="{{ "tags.html#" | append: tag[0] | prepend: site.baseurl }}" class="tag">{{ tag[0]}}</a>
{% endfor %}
</section>
{% endif %}
</div>
{% if site.search %}
<div class="search-card">
<input id="search_input" type="text" placeholder="Search..." autocomplete="off">
<i class="iconfont icon-search"></i>
<div class="search_result"></div>
</div>
{% endif %}
</aside>
</main>
{% include footer.html %}