Skip to content

Commit 515520c

Browse files
committed
替换 cloudflare cdn 为 jsdelivr
添加live2d nep
1 parent e46e343 commit 515520c

File tree

16 files changed

+433
-14
lines changed

16 files changed

+433
-14
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@ node_modules
1010
*/.DS_Store
1111
*/*/.DS_Store
1212
.idea
13+
.jekyll-cache

_includes/footer.html

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@
1414
</div>
1515
</div>
1616
</div>
17+
<div id="landlord">
18+
<div class="message" style="opacity: 0;"></div>
19+
<canvas id="live2d" width="280" height="250" class="live2d"></canvas>
20+
<div class="hide-button">隐藏</div>
21+
</div>
1722
</footer>
1823

1924
<!-- jQuery -->
@@ -22,6 +27,9 @@
2227
<!-- Bootstrap Core JavaScript -->
2328
<!-- Currently, only navbar scroll-down effect at desktop still depends on this -->
2429
<script src="{{ "/js/bootstrap.min.js " | prepend: site.baseurl }}"></script>
30+
<!-- live2d -->
31+
<script src="{{ "/js/live2d.min.js" | prepend: site.baseurl }}"></script>
32+
<script src="{{ "/js/message.js" | prepend: site.baseurl }}"></script>
2533

2634
<!-- Custom Theme JavaScript -->
2735
<script src="{{ "/js/hux-blog.min.js " | prepend: site.baseurl }}"></script>
@@ -82,7 +90,7 @@
8290

8391
<!--fastClick.js -->
8492
<script>
85-
async("//cdnjs.cloudflare.com/ajax/libs/fastclick/1.0.6/fastclick.min.js", function(){
93+
async("//cdn.jsdelivr.net/npm/fastclick@1.0.6/lib/fastclick.min.js", function(){
8694
var $nav = document.querySelector("nav");
8795
if($nav) FastClick.attach($nav);
8896
})

_includes/head.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,15 @@
4343

4444
<!-- Bootstrap Core CSS -->
4545
<link rel="stylesheet" href="{{ "/css/bootstrap.min.css" | prepend: site.baseurl }}">
46-
46+
<!-- live2d CSS -->
47+
<link rel="stylesheet" href="{{ "/css/live2d.css" | prepend: site.baseurl }}">
4748
<!-- Custom CSS -->
4849
<link rel="stylesheet" href="{{ "/css/hux-blog.min.css" | prepend: site.baseurl }}">
4950

5051
<!-- Custom Fonts -->
5152
<!-- <link href="http://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css" rel="stylesheet" type="text/css"> -->
5253
<!-- Hux change font-awesome CDN to qiniu -->
53-
<link href="//cdnjs.cloudflare.com/ajax/libs/font-awesome/4.6.3/css/font-awesome.min.css" rel="stylesheet" type="text/css">
54+
<link href="//cdn.jsdelivr.net/npm/font-awesome@4.6.3/css/font-awesome.min.css" rel="stylesheet" type="text/css">
5455

5556

5657
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->

_includes/mathjax_support.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@
1515
}
1616
});
1717
</script>
18-
<script type="text/javascript"
18+
<!-- <script type="text/javascript"
1919
src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js?config=TeX-AMS-MML_SVG">
20+
</script> -->
21+
<script type="text/javascript"
22+
src="https://cdn.jsdelivr.net/npm/[email protected]/es5/node-main.min.js">
2023
</script>

_layouts/keynote.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@
127127
</script>
128128
<!-- anchor-js, Doc:http://bryanbraun.github.io/anchorjs/ -->
129129
<script>
130-
async("//cdnjs.cloudflare.com/ajax/libs/anchor-js/1.1.1/anchor.min.js",function(){
130+
async("//cdn.jsdelivr.net/npm/anchor@1.4.0/index.min.js",function(){
131131
anchors.options = {
132132
visible: 'always',
133133
placement: 'right',

_layouts/page.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,10 @@
7878
}
7979
});
8080
</script>
81-
<script type="text/javascript"
81+
<!-- <script type="text/javascript"
8282
src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
83+
</script> -->
84+
<script type="text/javascript"
85+
src="//cdn.jsdelivr.net/npm/[email protected]/es5/node-main.min.js">
8386
</script>
8487
{% endif %}

_layouts/post.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ <h5>
150150
</script>
151151
<!-- anchor-js, Doc:http://bryanbraun.github.io/anchorjs/ -->
152152
<script>
153-
async("//cdnjs.cloudflare.com/ajax/libs/anchor-js/1.1.1/anchor.min.js",function(){
153+
async("//cdn.jsdelivr.net/npm/anchor@1.4.0/index.min.js",function(){
154154
anchors.options = {
155155
visible: 'hover',
156156
placement: 'right',

_posts/2020-01-06-2019.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ tags:
6969

7070
- 十二月
7171
- 公司实习写react-native
72-
- 第一次有了自己的抱枕老婆,角色是《樱之诗》中的女主 [咲崎桜子🌸](https://twitter.com/Beats0Ling/status/1079021520427446273)[词条](https://bangumi.tv/character/55792)
72+
- 第一次有了自己的抱枕老婆,角色是《樱之诗》中的学妹 [咲崎桜子🌸](https://twitter.com/Beats0Ling/status/1079021520427446273)[词条](https://bangumi.tv/character/55792)
7373
- 一月
7474
- 写react-native ios应用, 用了mac,有命令行就是好,写代码很舒服
7575
- 二月

css/hux-blog.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1572,6 +1572,9 @@ img::-moz-selection {
15721572
height: auto;
15731573
margin: 1.5em auto 1.6em auto;
15741574
}
1575+
.post-container img.imgCover {
1576+
margin-left: 1.5em;
1577+
}
15751578
/* Hux Optimize UserExperience */
15761579
.navbar-default .navbar-toggle:focus,
15771580
.navbar-default .navbar-toggle:hover {

css/hux-blog.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)