Skip to content

Commit e5ea5ae

Browse files
author
wu-kan
committed
v3.0.0完成~
1 parent ef58216 commit e5ea5ae

File tree

6 files changed

+97
-118
lines changed

6 files changed

+97
-118
lines changed

README.md

Lines changed: 51 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -4,57 +4,26 @@ title: 关于
44
permalink: /about/
55
---
66

7+
![Stars](https://img.shields.io/github/stars/wu-kan/wu-kan.github.io.svg)![Forks](https://img.shields.io/github/forks/wu-kan/wu-kan.github.io.svg)![Watchers](https://img.shields.io/github/watchers/wu-kan/wu-kan.github.io.svg)![License](https://img.shields.io/github/license/wu-kan/wu-kan.github.io.svg)![commit-activity](https://img.shields.io/github/commit-activity/m/wu-kan/wu-kan.github.io.svg)![last-commit](https://img.shields.io/github/last-commit/wu-kan/wu-kan.github.io.svg)![contributors](https://img.shields.io/github/contributors-anon/wu-kan/wu-kan.github.io.svg)![Issues](https://img.shields.io/github/issues/wu-kan/wu-kan.github.io.svg)![Release](https://img.shields.io/github/v/release/wu-kan/wu-kan.github.io.svg)![release-date](https://img.shields.io/github/release-date/wu-kan/wu-kan.github.io.svg)![CountLanguage](https://img.shields.io/github/languages/count/wu-kan/wu-kan.github.io.svg)![TopLanguage](https://img.shields.io/github/languages/top/wu-kan/wu-kan.github.io.svg)![CodeSize](https://img.shields.io/github/languages/code-size/wu-kan/wu-kan.github.io.svg)![RepoSize](https://img.shields.io/github/repo-size/wu-kan/wu-kan.github.io.svg)![Downloads](https://img.shields.io/github/downloads/wu-kan/wu-kan.github.io/total.svg)
8+
79
## 开始
810

911
1. Fork [wu-kan/wu-kan.github.io](https://github.com/wu-kan/wu-kan.github.io/fork)到你的仓库,并在设置里开启 gh-pages
10-
2. 修改`_config.yml`为你自己的信息
11-
3. 修改`CNAME`中的网址为你自己的网址,如`wu-kan.github.io`或者`wu-kan.cn`
12-
4. 删除`_post/`下的博文和`assets/image/`目录下的图片,开始写你自己的文章
13-
5. 配置过程推荐以下几篇博文:
12+
- 由于我的博客仍然在持续更新调整,建议在 Tag 或者 Release 中选择已发布的稳定版本食用~
13+
2. 修改`CNAME`中的网址为你自己的网址,如`wu-kan.github.io`或者`wu-kan.cn`
14+
3. 现在你的网址应该可以访问了,配置`_config.yml`你自己的信息,能看懂多少就改多少;配置过程推荐以下几篇博文:
1415
- [基于 Jekyll 搭建个人博客](https://wu-kan.cn/_posts/2019-01-18-%E5%9F%BA%E4%BA%8EJekyll%E6%90%AD%E5%BB%BA%E4%B8%AA%E4%BA%BA%E5%8D%9A%E5%AE%A2/)
1516
- [Markdown 写作心得](https://wu-kan.cn/_posts/2019-01-18-%E5%9F%BA%E4%BA%8EJekyll%E6%90%AD%E5%BB%BA%E4%B8%AA%E4%BA%BA%E5%8D%9A%E5%AE%A2/)
1617
- [个人网站优化之旅](https://wu-kan.cn/_posts/2020-02-06-%E4%B8%AA%E4%BA%BA%E7%BD%91%E7%AB%99%E4%BC%98%E5%8C%96%E4%B9%8B%E6%97%85/)
17-
18-
![Demo](/screenshot.png)
18+
4. 删除`_post/`下的博文和`assets/image/`目录下的图片,开始写你自己的文章
19+
5. 欢迎 Star、Fork、Issue!
1920

2021
## 声明
2122

2223
除特别声明或转载外,所有博文采用[署名-相同方式共享 4.0 国际](https://creativecommons.org/licenses/by-sa/4.0/deed.zh)协议进行许可。
2324

2425
博客基于[MIT License](https://github.com/wu-kan/wu-kan.github.io/blob/master/LICENSE)开源于[GitHub](https://github.com/wu-kan/wu-kan.github.io)
2526

26-
## 致谢
27-
28-
托管于[Github Pages](https://pages.github.com/),感谢。
29-
30-
博客引擎来自于[jekyll/jekyll](https://github.com/jekyll/jekyll),感谢。
31-
32-
CDN 加速服务来自于<https://cdn.jsdelivr.net/><https://loli.net>,感谢。
33-
34-
博客主题基于[poole/lanyon](https://github.com/poole/lanyon),感谢。
35-
36-
图标库来自于[<i class="fab fa-font-awesome"></i>fontawesome-free](https://fontawesome.com/),感谢。
37-
38-
留言和阅读量系统来自于[Valine](https://valine.js.org/)[LeanCloud](https://leancloud.cn/),感谢。
39-
40-
捐赠页来自[hifocus/merger](https://github.com/hifocus/merger),感谢。
41-
42-
页面统计来自于[不蒜子](http://busuanzi.ibruce.info/),感谢。
43-
44-
博客搜索插件来自于[christian-fei/Simple-Jekyll-Search](https://github.com/christian-fei/Simple-Jekyll-Search),感谢。
45-
46-
博文目录插件来自于[yijian166/md-toc.js](https://github.com/yijian166/md-toc.js),感谢。
47-
48-
代码高亮及插件来自于[PrismJS](https://prismjs.com/),感谢。
49-
50-
Live2D 前端插件来自于[kooritea/live2d-helper](https://github.com/kooritea/live2d-helper),感谢。
51-
52-
Live2D Model 来自于[fghrsh/live2d_api](https://github.com/fghrsh/live2d_api/tree/master/model/HyperdimensionNeptunia/nepnep),感谢。
53-
54-
头像翻转效果来自于[leopardpan/leopardpan.github.io](https://github.com/leopardpan/leopardpan.github.io),感谢。
55-
56-
头像、壁纸来自于<https://www.pixiv.net/artworks/72096124><https://www.pixiv.net/artworks/71932901><https://www.pixiv.net/artworks/76122909>,感谢(侵权必删)。
57-
5827
## 初心
5928

6029
我曾做什么?
@@ -69,24 +38,26 @@ Live2D Model 来自于[fghrsh/live2d_api](https://github.com/fghrsh/live2d_api/t
6938
>
7039
> > “‘自然选择’,前进四!”
7140
41+
目标是实现一个尽可能简洁,而可定制内容又尽可能多的博客。目前博客的预览如下:
42+
43+
![Demo](/screenshot.png)
44+
7245
## 历程
7346

74-
### 即将发布 v3.0.0
47+
### 2020-02-14 v3.0.0
7548

49+
- [x] 插件引入方式完全重构,现在直接嵌入 html 即可
7650
- [x] 更换 live2d 插件为[kooritea/live2d-helper](https://github.com/kooritea/live2d-helper),从而支持 live2d 定制
77-
- [ ] 调整 live2d 选项
78-
- [ ] 增加 live2d 工具栏
79-
- [ ] 隐藏按钮
80-
- [ ] 全站使用 webp 图片,加快访问速度
81-
- [x] 插件引入方式完全重构
51+
- [x] 看板娘隐藏按钮
8252
- [x] 去除 jQuery
53+
- [x] 去除 categories 标签,使用 tags 代替
8354
- [x] 博客结构调整,把`/public`目录迁移到 jekyll 默认的`/assets`
8455
- [x] merger 打赏页
85-
- [x] $\KaTeX$ 行间公式
86-
- [x] 全局搜索
87-
- [x] 修复 githubpage 显示更新时间不正确的问题
56+
- [x] 侧边栏样式调整,更加简洁
57+
- [x] 主题色由青色调整成爱酱灰(zoombie ver)+爱酱蓝(idol ver)
8858
- [x] 为竖屏显示增加壁纸
89-
- [x] 修改选中内容颜色
59+
- [x] 全局搜索
60+
- [x] $\KaTeX$ 行间公式
9061

9162
### 2020.01.31 v2.4.1
9263

@@ -265,3 +236,35 @@ Live2D Model 来自于[fghrsh/live2d_api](https://github.com/fghrsh/live2d_api/t
265236
- 在 Github 上成功部署博客
266237
- 成功迁移[原 CSDN 博客](https://blog.csdn.net/w_weilan)上的所有文章
267238
- live2d
239+
240+
## 致谢
241+
242+
托管于[Github Pages](https://pages.github.com/),感谢。
243+
244+
博客引擎来自于[jekyll/jekyll](https://github.com/jekyll/jekyll),感谢。
245+
246+
CDN 加速服务来自于<https://cdn.jsdelivr.net/><https://loli.net>,感谢。
247+
248+
博客主题基于[poole/lanyon](https://github.com/poole/lanyon),感谢。
249+
250+
图标库来自于[<i class="fab fa-font-awesome"></i>fontawesome-free](https://fontawesome.com/),感谢。
251+
252+
留言和阅读量系统来自于[Valine](https://valine.js.org/)[LeanCloud](https://leancloud.cn/),感谢。
253+
254+
捐赠页来自[hifocus/merger](https://github.com/hifocus/merger),感谢。
255+
256+
页面统计来自于[不蒜子](http://busuanzi.ibruce.info/),感谢。
257+
258+
博客搜索插件来自于[christian-fei/Simple-Jekyll-Search](https://github.com/christian-fei/Simple-Jekyll-Search),感谢。
259+
260+
博文目录插件来自于[yijian166/md-toc.js](https://github.com/yijian166/md-toc.js),感谢。
261+
262+
代码高亮及插件来自于[PrismJS](https://prismjs.com/),感谢。
263+
264+
Live2D 前端插件来自于[kooritea/live2d-helper](https://github.com/kooritea/live2d-helper),感谢。
265+
266+
Live2D Model 来自于[fghrsh/live2d_api](https://github.com/fghrsh/live2d_api/tree/master/model/HyperdimensionNeptunia/nepnep),感谢。
267+
268+
头像翻转效果来自于[leopardpan/leopardpan.github.io](https://github.com/leopardpan/leopardpan.github.io),感谢。
269+
270+
头像、壁纸来自于<https://www.pixiv.net/artworks/72096124><https://www.pixiv.net/artworks/71932901><https://www.pixiv.net/artworks/76122909>,感谢(侵权必删)。

_config.yml

Lines changed: 41 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ description: | # 头像背后的信息,<br/>代表换行
9595
SYSU超算17级在读<br/>
9696
永远喜欢水野爱<br/>
9797
田宫例四驱车<br/>
98-
ASCer<br/>
98+
ASC<br/>
9999
<a href="/assets/jekyll-sitemaps/atom.xml" title="rss">
100100
<i class="fas fa-rss"></i>
101101
</a>
@@ -208,7 +208,9 @@ archive:
208208
comments:
209209
enable: true # 需要在script中引入
210210
alert: |
211-
<div class="v"></div>
211+
<div class="v">
212+
<i class="fas fa-spinner fa-pulse"></i>
213+
</div>
212214
<script
213215
src='https://cdn.jsdelivr.net/npm/valine'
214216
defer='defer'
@@ -258,7 +260,7 @@ post:
258260
259261
page:
260262
body:
261-
theme-base: theme-base-0d # 可选的值08~0f,见https://github.com/poole/lanyon
263+
theme-base: theme-base-07 # 可选的值08~0f,见https://github.com/poole/lanyon
262264
layout-reverse: false # 开启后sidebar在右边,反之左边
263265
sidebar-overlay: false # 开启后正文不随sidebar移动而移动
264266
sidebar:
@@ -296,25 +298,27 @@ page:
296298
})'
297299
></script>
298300
alert: |
299-
<div>
301+
<aside id="toc">
300302
目录
301-
<aside id="toc">
302-
</aside>
303-
<script
304-
src='https://cdn.jsdelivr.net/gh/yijian166/md-toc.js/md-toc.min.js'
305-
defer='defer'
306-
onload="new Toc('content',{'level':3,'top':-1,'targetId':'toc'})"
307-
></script>
308-
</div>
303+
</aside>
304+
<script
305+
src='https://cdn.jsdelivr.net/gh/yijian166/md-toc.js/md-toc.min.js'
306+
defer='defer'
307+
onload="new Toc('content',{'level':3,'top':-1,'targetId':'toc'})"
308+
></script>
309309
<div>
310310
<i class="fab fa-github-alt fa-fw"></i>
311311
<a href="https://github.com/wu-kan/wu-kan.github.io">
312-
<img src="https://img.shields.io/github/stars/wu-kan/wu-kan.github.io.svg" style="display:inline;margin-bottom:0;"/>
312+
<img src="https://img.shields.io/github/stars/wu-kan/wu-kan.github.io.svg"/>
313313
</a>
314314
<a href="https://github.com/wu-kan/wu-kan.github.io/fork">
315-
<img src="https://img.shields.io/github/forks/wu-kan/wu-kan.github.io.svg" style="display:inline;margin-bottom:0;"/>
315+
<img src="https://img.shields.io/github/forks/wu-kan/wu-kan.github.io.svg"/>
316316
</a>
317317
</div>
318+
<div>
319+
<i class="fas fa-copyright fa-fw"></i>
320+
2017-2020 WuK
321+
</div>
318322
<div>
319323
<i class="fas fa-cog fa-spin fa-fw"></i>
320324
<span id="run_time_day">
@@ -384,12 +388,6 @@ page:
384388
alert: <i class="fas fa-user-edit fa-fw"></i>
385389
kilo:
386390
unit:
387-
last_edit:
388-
enable: true
389-
alert: <i class="fas fa-edit fa-fw"></i>
390-
copyright:
391-
enable: true
392-
alert: <i class="fas fa-copyright fa-fw"></i>
393391
head:
394392
| # 通过内嵌html的方式引入并定制插件,删改前确定知道自己在做什么。定制插件的方式可以参考这篇文章<https://wu-kan.cn/_posts/2019-01-18-基于Jekyll搭建个人博客/>
395393
<meta
@@ -592,6 +590,10 @@ page:
592590
overflow: auto;
593591
background-color: rgba(0, 0, 0, 0);
594592
}
593+
img {
594+
display: inline;
595+
margin: 0;
596+
}
595597
html,
596598
h1,
597599
h2,
@@ -602,10 +604,6 @@ page:
602604
.sidebar {
603605
font-family: Menlo, Monaco, "Courier New", Microsoft JhengHei, monospace;
604606
}
605-
.theme-base-0d ::selection {
606-
color: #fff;
607-
background: #6a9fb5;
608-
}
609607
.wrap {
610608
background-image: url(https://cdn.jsdelivr.net/gh/wu-kan/wu-kan.github.io@0dea9ba84fd9529e6635ec4c6604525470852730/assets/image/76122909_p0.webp);
611609
background-size: auto 100vh;
@@ -659,54 +657,45 @@ page:
659657
background-image: none;
660658
}
661659
/*头像效果-start*/
662-
.ih-item.circle .info {
660+
.effect {
661+
margin: 1rem;
662+
-webkit-perspective: 900px;
663+
-moz-perspective: 900px;
664+
perspective: 900px;
665+
}
666+
.effect-info {
663667
text-align: center;
664668
-webkit-backface-visibility: hidden;
665669
backface-visibility: hidden;
666670
position: absolute;
667671
top: 0;
668-
padding: 1rem;
672+
-webkit-transform-style: preserve-3d;
673+
-moz-transform-style: preserve-3d;
674+
-ms-transform-style: preserve-3d;
675+
-o-transform-style: preserve-3d;
676+
transform-style: preserve-3d;
669677
}
670-
.ih-item.circle .img {
678+
.effect-img {
679+
z-index: 11;
671680
width: 100%;
672681
height: 100%;
673-
margin: 0;
674682
position: relative;
675-
padding: 1rem;
676-
}
677-
.ih-item.circle .img:before {
678-
position: absolute;
679-
display: block;
680-
-webkit-transition: all 0.35s ease-in-out;
681-
-moz-transition: all 0.35s ease-in-out;
682-
transition: all 0.35s ease-in-out;
683-
}
684-
.ih-item.circle.effect {
685-
-webkit-perspective: 900px;
686-
-moz-perspective: 900px;
687-
perspective: 900px;
688-
}
689-
.ih-item.circle.effect .img {
690-
z-index: 11;
691683
-webkit-transition: all 0.5s ease-in-out;
692684
-moz-transition: all 0.5s ease-in-out;
693685
transition: all 0.5s ease-in-out;
694686
}
695-
.ih-item.circle.effect .info {
696-
-webkit-transform-style: preserve-3d;
697-
-moz-transform-style: preserve-3d;
698-
-ms-transform-style: preserve-3d;
699-
-o-transform-style: preserve-3d;
700-
transform-style: preserve-3d;
687+
.effect-img:before {
688+
position: absolute;
689+
display: block;
701690
}
702-
.ih-item.circle.effect.right_to_left .img {
691+
.effect-right_to_left .effect-img {
703692
-webkit-transform-origin: 0% 50%;
704693
-moz-transform-origin: 0% 50%;
705694
-ms-transform-origin: 0% 50%;
706695
-o-transform-origin: 0% 50%;
707696
transform-origin: 0% 50%;
708697
}
709-
.ih-item.circle.effect.right_to_left:hover .img {
698+
.effect-right_to_left:hover .effect-img {
710699
-webkit-transform: rotate3d(0, 1, 0, -180deg);
711700
-moz-transform: rotate3d(0, 1, 0, -180deg);
712701
-ms-transform: rotate3d(0, 1, 0, -180deg);

_layouts/page.html

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@
1616
<div class="sidebar" id="sidebar">
1717
{% if site.page.sidebar.avatar.enable %}
1818
<div class="sidebar-item">
19-
<div class="ih-item circle effect right_to_left">
20-
<img class="img" src="{{ site.page.sidebar.avatar.img }}" alt="img" />
21-
<div class="info">
19+
<div class="effect effect-right_to_left">
20+
<img class="effect-img" src="{{ site.page.sidebar.avatar.img }}" alt="img" />
21+
<div class="effect-info">
2222
{{ site.description }}
2323
</div>
2424
</div>
@@ -54,19 +54,6 @@
5454
{% endif %}
5555
</div>
5656
{% endif %}
57-
{% if site.page.sidebar.last_edit.enable %}
58-
<div>
59-
{{ site.page.sidebar.last_edit.alert }}
60-
{{ site.time | date: '%F %T' }}
61-
</div>
62-
{% endif %}
63-
{% if site.page.sidebar.copyright.enable %}
64-
<div>
65-
{{ site.page.sidebar.copyright.alert }}
66-
{{ site.time | date: '%Y' }}
67-
{{ site.author.name }}
68-
</div>
69-
{% endif %}
7057
</div>
7158
</div>
7259
<!-- Wrap is the content to shift when toggling the sidebar. We wrap the content to avoid any CSS collisions with our real content. -->

_posts/2019-01-18-基于Jekyll搭建个人博客.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ wu-kan.github.io
135135
defer="defer"
136136
src="https://cdn.jsdelivr.net/npm/[email protected]/dist/index.min.js"
137137
onload='
138-
if (screen.width >= 768)
138+
if (screen.width >= screen.height)
139139
{
140140
var waifu = document.createElement("canvas");
141141
waifu.style.zIndex = 0;

index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,4 +61,4 @@ TBD
6161
- [这一年的一点感想](https://wu-kan.cn/_posts/2019-07-18-%E8%BF%99%E4%B8%80%E5%B9%B4%E7%9A%84%E4%B8%80%E7%82%B9%E6%84%9F%E6%83%B3/)
6262
- [再见,算法竞赛!](https://wu-kan.cn/_posts/2019-11-04-%E5%86%8D%E8%A7%81-%E7%AE%97%E6%B3%95%E7%AB%9E%E8%B5%9B/)
6363
- [Markdown 写作心得](https://wu-kan.cn/_posts/2020-01-18-Markdown%E5%86%99%E4%BD%9C%E5%BF%83%E5%BE%97/)
64-
- [今日此时所想之事](https://wu-kan.cn/_posts/2019-07-18-%E8%BF%99%E4%B8%80%E5%B9%B4%E7%9A%84%E4%B8%80%E7%82%B9%E6%84%9F%E6%83%B3/)
64+
- [今日此时所想之事](http://wu-kan.cn/_posts/2020-01-24-%E4%BB%8A%E6%97%A5%E6%AD%A4%E6%97%B6%E6%89%80%E6%83%B3%E4%B9%8B%E4%BA%8B/)

screenshot.png

-3.14 KB
Loading

0 commit comments

Comments
 (0)