Skip to content

Commit 04c7bb8

Browse files
committed
feat: move friends to another repo, lift the burden
1 parent befadba commit 04c7bb8

22 files changed

+65
-46
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
"saber-theme-minima": "latest"
1212
},
1313
"dependencies": {
14+
"axios": "^0.19.2",
1415
"global": "^4.4.0",
1516
"markdown-it-attrs": "^3.0.2",
1617
"markdown-it-cjk-breaks": "^1.1.3",

pages/_assets/avatar/bg/EVA.jpg

-1.75 MB
Binary file not shown.

pages/_assets/avatar/bg/neko.jpg

-47.9 KB
Binary file not shown.

pages/_assets/avatar/friends/1a23.png

-28.3 KB
Binary file not shown.
-40.9 KB
Binary file not shown.

pages/_assets/avatar/friends/dcc.png

-17.6 KB
Binary file not shown.
-187 KB
Binary file not shown.
-127 KB
Binary file not shown.
-205 KB
Binary file not shown.
-334 KB
Binary file not shown.
-44.5 KB
Binary file not shown.
-7.94 KB
Binary file not shown.
-36.1 KB
Binary file not shown.
-18.3 KB
Binary file not shown.
-32.2 KB
Binary file not shown.
-59.7 KB
Binary file not shown.
-6.5 KB
Binary file not shown.

pages/_assets/avatar/me.png

-502 KB
Binary file not shown.

pages/friends.md

Lines changed: 28 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,64 +1,48 @@
11
---
22
title: 友情链接
33
layout: showcase
4-
description: WOW, these ARE my friends
4+
description: wow, these ARE my friends
55
---
66

77
这里应该是一些一起玩的小伙伴们,他们都超级棒的!!1
88

99
不妨也去溜达溜达 XD
1010

11-
|Avatar|Site|Slogan|
12-
|:-:|:-:|:-:|
13-
|<img src="./_assets/avatar/friends/genteure.png" width="200"/>|[Genteure](https://www.genteure.com)|宅急送队长随便说|
14-
|<img src="./_assets/avatar/friends/nimaqu.jpg" width="200"/>|[Nimaqu](https://blog.nimaqu.com/)|除了水群啥都不会
15-
|<img src="./_assets/avatar/friends/huihui.jpg" width="200"/>|[灰灰](https://huihui.moe)|好诶,是 huihui
16-
|<img src="./_assets/avatar/friends/lwl12.jpg" width="200"/>|[LWL 的自由天空](https://blog.lwl12.com)|Hi, LWL12
17-
|<img src="./_assets/avatar/friends/neofelhz.png" width="200"/>|[neoFelhz's Blog](https://blog.nfz.moe)|Nothing can be done without paranoia.
18-
|<img src="./_assets/avatar/friends/indexyz.png" width="200"/>|[Indexyz Blog](https://blog.indexyz.me)|Sharing light, even in death.
19-
|<img src="./_assets/avatar/friends/milkice.jpg" width="200"/>|[奶冰の冷藏室](https://milkice.me)|Maybe a way to explore the world?
20-
|<img src="./_assets/avatar/friends/anankke.jpg" width="200"/>|[Anankke's Blog](http://an.ank.moe)|Into The Abyss.
21-
|<img src="./_assets/avatar/friends/mokejay.jpg" width="200"/>|[超能小紫 mokejay](https://www.mokeyjay.com/)|PHP初学者 // ACG爱好者 // 专业学渣 // 余业萝莉控
22-
|<img width="200px" src="./_assets/avatar/friends/1a23.png"/>|[1A23 Studio](https://1a23.com/)|We Create.
23-
|<img src="./_assets/avatar/friends/dcc.png" width="200"/>|[DCC 的小窝](https://www.dcc.cat)|长夜才开始,黑暗中请记得太阳的模样,沉默中不要为魔鬼歌唱。
24-
|<img src="./_assets/avatar/friends/kookxiang.jpg" width="200"/>|[KK 的博客](https://ikk.me)|code just like a piece of shit.|
25-
|<img src="./_assets/avatar/friends/vigorous.png" width="200"/>|[Vigorous Pro](https://www.wevg.org)|这是一个从零开始的世界|
26-
|<img src="https://static.yecdn.com/static/blog/page/about/avatar.png" width="200"/>|[Zohar's Blog](https://www.iwch.me/)|The Most Important Thing in My Life is Freedom|
27-
|<img src="https://cdn.jsdelivr.net/npm/[email protected]/img/avatar.png" width="200"/>|[Sukka's Blog](https://skk.moe)|童话只美在真实却从不续写|
28-
||[青空之蓝](https://ixk.me)|站在时光一端,回忆过往记忆|
29-
|<img src="https://liyin.date/myfiles/images/logo.png" width="200"/>|[天空之边](https://liyin.date)|用心探知天空的边界|
30-
||[无垠](https://flyhigher.top)|飞翔的天空无限大|
31-
|<img src="./_assets/avatar/friends/huangfeng.png" width="200"/>|[黄蜂说](https://www.sjy.im/)|一名互联网从业者的自留地,分享自己的所见所得,自认为过程比结果重要。|
11+
<table>
12+
<thead><tr><th style="text-align: center;">Avatar</th> <th style="text-align: center;">Site</th> <th style="text-align: center;">Slogan</th></tr></thead>
13+
<tbody>
14+
<tr v-for="(value, name) in friends">
15+
<td style="text-align:center;"><img v-if="value.img" :src="value.img" width="200"><span v-else>头</span></td>
16+
<td style="text-align:center;"><a :href="value.link">{{ name }}</a></td>
17+
<td style="text-align:center;">{{ value.slogan }}</td>
18+
</tr>
19+
</tbody>
20+
</table>
3221

3322
# 交换友链
3423

35-
如果你想要加我的话,这里是一些基本信息你可以直接拿走:
24+
交换链接请移步[这个仓库](https://github.com/HomeofNever/Friends), 阅读说明后发起 pr 提交你的信息
3625

37-
- 名字:NEVER迷の小窝
38-
- 简介:没有简介的迷の生物
39-
- 头像:[email protected][Gravatar](https://www.gravatar.com/avatar/8f253ca9681abc8072a3a1fc6dde8f8f)
40-
- <a v-bind:href="my">我的Favicon</a>
41-
- [使用说明](https://en.gravatar.com/site/implement/images)
42-
- 背景图:可以使用以下图片
43-
- <a v-bind:href="eva">EVA</a>
44-
- <a v-bind:href="neko">Neko</a>
45-
46-
47-
你可以到这个博客的仓库pr提交你的信息
26+
等你哦w
4827

28+
<br>
4929

5030
<script>
31+
import axios from 'axios'
32+
5133
export default {
52-
computed: {
53-
my() {
54-
return require('./_assets/avatar/me.png').images[0].path
55-
},
56-
neko() {
57-
return require('./_assets/avatar/bg/neko.jpg').images[0].path
58-
},
59-
eva() {
60-
return require('./_assets/avatar/bg/EVA.jpg').images[0].path
34+
data() {
35+
return {
36+
friends: {}
37+
}
38+
},
39+
created() {
40+
this.getFriendList()
41+
},
42+
methods: {
43+
getFriendList() {
44+
axios.get('https://cdn.jsdelivr.net/gh/homeofnever/friends@gh-pages/friends.json').then(res => res.data).then(res => this.friends = res)
6145
}
6246
}
6347
}
64-
</script>
48+
</script>

theme/components/Disqus.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<template>
2-
<div id="disqus_thread"></div>
2+
<section>
3+
<div id="disqus_thread"></div>
4+
</section>
35
</template>
46

57
<script>

theme/layouts/post.vue

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@
3232
<slot name="default" />
3333
</div>
3434

35+
<div class="post-end">The end is not the end; Je vous laisse.</div>
36+
3537
<Disqus
3638
v-if="page.comments !== false && $themeConfig.disqus"
3739
:url="$siteConfig.url"
@@ -59,4 +61,13 @@ export default {
5961
formatDate: formatDate
6062
}
6163
};
62-
</script>
64+
</script>
65+
66+
<style scoped>
67+
.post-end {
68+
position:relative;
69+
margin:3rem 0;
70+
color:#ddd;
71+
border-bottom:.2em dashed #ddd
72+
}
73+
</style>

yarn.lock

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1374,6 +1374,13 @@ atob@^2.1.2:
13741374
resolved "https://registry.yarnpkg.com/atob/-/atob-2.1.2.tgz#6d9517eb9e030d2436666651e86bd9f6f13533c9"
13751375
integrity sha512-Wm6ukoaOGJi/73p/cl2GvLjTI5JM1k/O14isD73YML8StrH/7/lRFgmg8nICZgD3bZZvjwCGxtMOD3wWNAu8cg==
13761376

1377+
axios@^0.19.2:
1378+
version "0.19.2"
1379+
resolved "https://registry.yarnpkg.com/axios/-/axios-0.19.2.tgz#3ea36c5d8818d0d5f8a8a97a6d36b86cdc00cb27"
1380+
integrity sha512-fjgm5MvRHLhx+osE2xoekY70AhARk3a6hkN+3Io1jc00jtquGvxYlKlsFUhmUET0V5te6CcZI7lcv2Ym61mjHA==
1381+
dependencies:
1382+
follow-redirects "1.5.10"
1383+
13771384
babel-loader@^8.0.6:
13781385
version "8.1.0"
13791386
resolved "https://registry.yarnpkg.com/babel-loader/-/babel-loader-8.1.0.tgz#c611d5112bd5209abe8b9fa84c3e4da25275f1c3"
@@ -2250,6 +2257,13 @@ [email protected], debug@^2.2.0, debug@^2.3.3:
22502257
dependencies:
22512258
ms "2.0.0"
22522259

2260+
debug@=3.1.0:
2261+
version "3.1.0"
2262+
resolved "https://registry.yarnpkg.com/debug/-/debug-3.1.0.tgz#5bb5a0672628b64149566ba16819e61518c67261"
2263+
integrity sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g==
2264+
dependencies:
2265+
ms "2.0.0"
2266+
22532267
debug@^4.1.0:
22542268
version "4.1.1"
22552269
resolved "https://registry.yarnpkg.com/debug/-/debug-4.1.1.tgz#3b72260255109c6b589cee050f1d516139664791"
@@ -2880,6 +2894,13 @@ flush-write-stream@^1.0.0:
28802894
inherits "^2.0.3"
28812895
readable-stream "^2.3.6"
28822896

2897+
2898+
version "1.5.10"
2899+
resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.5.10.tgz#7b7a9f9aea2fdff36786a94ff643ed07f4ff5e2a"
2900+
integrity sha512-0V5l4Cizzvqt5D44aTXbFZz+FtyXV1vrDN6qrelxtfYQKW0KO0W2T/hkE8xvGa/540LkZlkaUjO4ailYTFtHVQ==
2901+
dependencies:
2902+
debug "=3.1.0"
2903+
28832904
for-in@^1.0.2:
28842905
version "1.0.2"
28852906
resolved "https://registry.yarnpkg.com/for-in/-/for-in-1.0.2.tgz#81068d295a8142ec0ac726c6e2200c30fb6d5e80"

0 commit comments

Comments
 (0)