其实,不是每次抬头都能看见云的,每次都能看见的,是天。

——《雪见—仙凡之旅》网易云音乐热评

​ 昨天吃完饭的时候突然想到是不是可以在博客上开辟出一个标签页用来发表个人说说,记录自己的生活,就像QQ空间一样呢?(以前由于不喜欢花里胡哨及无聊的广告就把QQ的空间给关掉了)于是我吃完饭立即在网上展开相关资料的搜索,最终将目标锁定在Uncle_drew的一个项目上,biu~~博客教程传送门。(里面也有GitHub仓库和视频教程)

说明:我没有写出步骤,只是列出我的一些问题供参考,具体步骤请移步作者博客及GitHub仓库。

由于我配置的时候早了点,现在作者已经将该项目改名为Artitalk并发布了新的文档,所以我的这篇文章应该过时了,不过也可以参考可参考,之后我会按照新的文档重新配置试试。

​ 原本他是创建的一个静态说说页面,但由于每次写说说的时候都需要在本地撰写,然后再部署发布,很不方便,于是他便想实现实时发布的动态效果,虽然实现了但有些不知名的bug,不过总体还算可以。由于看了作者的博客,GitHub和B站上教程,多少都是有差异的,而且教程上有些表达不清,倒是给我带来了不少问题,我把一些主要的问题列出来:

1. GitHub上下载的文件压缩后只需取其中的scr文件夹,然后放到/theme/你的主题/source/就好。

2. 作者博客上让你写在index.md的代码

需添加的部分如下:

其次注意上图中

1
<link rel="stylesheet" href="/src/shuoshuov1.1.css" media="all">

1
2
<script type="text/javascript" src="/src/os.js"></script>
<script type="text/javascript" src="/src/shuoshuov2.1.1.js"></script>

href="/src/shuoshuov1.1.css等号后面的路径的意思就是调用source文件夹里面的scr文件夹里面的shuoshuov1.1.css文件,所以我刚才建议你直接把scr文件夹直接放在/theme/你的主题/source/。(当然你也可以自定义放置,但上图中的路径要对应好)下面两行引用代码的注意点同上。

上图中新增的代码在作者的GitHub仓库下面都给出了。

3. 对于作者说的在head中调用font-awesome的css

我的主题为Butterfy,我实现的方式是在主题配置文件butterfly.yml中添加这段代码,其他的我就不知道了(小白勿喷)😟

4. 如下的代码是loading-page的加载动画,不好看所以我删掉了。

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
<div id="lazy">
<div class="preloader" style="opacity: 1; ">
<svg version="1.1" id="sun" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="10px" height="10px" viewBox="0 0 10 10" enable-background="new 0 0 10 10" xml:space="preserve" style="opacity: 1; margin-left: 0px; margin-top: 0px;">
<g>
<path fill="none" d="M6.942,3.876c-0.4-0.692-1.146-1.123-1.946-1.123c-0.392,0-0.779,0.104-1.121,0.301c-1.072,0.619-1.44,1.994-0.821,3.067C3.454,6.815,4.2,7.245,5,7.245c0.392,0,0.779-0.104,1.121-0.301C6.64,6.644,7.013,6.159,7.167,5.581C7.321,5,7.243,4.396,6.942,3.876z M6.88,5.505C6.745,6.007,6.423,6.427,5.973,6.688C5.676,6.858,5.34,6.948,5,6.948c-0.695,0-1.343-0.373-1.69-0.975C2.774,5.043,3.093,3.849,4.024,3.312C4.32,3.14,4.656,3.05,4.996,3.05c0.695,0,1.342,0.374,1.69,0.975C6.946,4.476,7.015,5,6.88,5.505z"></path>
<path fill="none" d="M8.759,2.828C8.718,2.757,8.626,2.732,8.556,2.774L7.345,3.473c-0.07,0.041-0.094,0.132-0.053,0.202C7.319,3.723,7.368,3.75,7.419,3.75c0.025,0,0.053-0.007,0.074-0.02l1.211-0.699C8.774,2.989,8.8,2.899,8.759,2.828z"></path>
<path fill="none" d="M1.238,7.171c0.027,0.047,0.077,0.074,0.128,0.074c0.025,0,0.051-0.008,0.074-0.02l1.211-0.699c0.071-0.041,0.095-0.133,0.054-0.203S2.574,6.228,2.503,6.269l-1.21,0.699C1.221,7.009,1.197,7.101,1.238,7.171z"></path>
<path fill="none" d="M6.396,2.726c0.052,0,0.102-0.026,0.13-0.075l0.349-0.605C6.915,1.976,6.89,1.885,6.819,1.844c-0.07-0.042-0.162-0.017-0.202,0.054L6.269,2.503C6.228,2.574,6.251,2.666,6.322,2.706C6.346,2.719,6.371,2.726,6.396,2.726z"></path>
<path fill="none" d="M3.472,7.347L3.123,7.952c-0.041,0.07-0.017,0.162,0.054,0.203C3.2,8.169,3.226,8.175,3.25,8.175c0.052,0,0.102-0.027,0.129-0.074l0.349-0.605c0.041-0.07,0.017-0.16-0.054-0.203C3.603,7.251,3.513,7.276,3.472,7.347z"></path>
<path fill="none" d="M3.601,2.726c0.025,0,0.051-0.007,0.074-0.02C3.746,2.666,3.77,2.574,3.729,2.503l-0.35-0.604C3.338,1.828,3.248,1.804,3.177,1.844C3.106,1.886,3.082,1.976,3.123,2.047l0.35,0.604C3.5,2.7,3.549,2.726,3.601,2.726z"></path>
<path fill="none" d="M6.321,7.292c-0.07,0.043-0.094,0.133-0.054,0.203l0.351,0.605c0.026,0.047,0.076,0.074,0.127,0.074c0.025,0,0.051-0.006,0.074-0.02c0.072-0.041,0.096-0.133,0.055-0.203l-0.35-0.605C6.483,7.276,6.393,7.253,6.321,7.292z"></path>
<path fill="none" d="M2.202,5.146c0.082,0,0.149-0.065,0.149-0.147S2.284,4.851,2.202,4.851H1.503c-0.082,0-0.148,0.066-0.148,0.148s0.066,0.147,0.148,0.147H2.202z"></path>
<path fill="none" d="M8.493,4.851H7.794c-0.082,0-0.148,0.066-0.148,0.148s0.066,0.147,0.148,0.147l0,0h0.699c0.082,0,0.148-0.065,0.148-0.147S8.575,4.851,8.493,4.851L8.493,4.851z"></path>
<path fill="none" d="M5.146,2.203V0.805c0-0.082-0.066-0.148-0.148-0.148c-0.082,0-0.148,0.066-0.148,0.148v1.398c0,0.082,0.066,0.149,0.148,0.149C5.08,2.352,5.146,2.285,5.146,2.203z"></path>
<path fill="none" d="M4.85,7.796v1.396c0,0.082,0.066,0.15,0.148,0.15c0.082,0,0.148-0.068,0.148-0.15V7.796c0-0.082-0.066-0.148-0.148-0.148C4.917,7.647,4.85,7.714,4.85,7.796z"></path>
<path fill="none" d="M2.651,3.473L1.44,2.774C1.369,2.732,1.279,2.757,1.238,2.828C1.197,2.899,1.221,2.989,1.292,3.031l1.21,0.699c0.023,0.013,0.049,0.02,0.074,0.02c0.051,0,0.101-0.026,0.129-0.075C2.747,3.604,2.722,3.514,2.651,3.473z"></path>
<path fill="none" d="M8.704,6.968L7.493,6.269c-0.07-0.041-0.162-0.016-0.201,0.055c-0.041,0.07-0.018,0.162,0.053,0.203l1.211,0.699c0.023,0.012,0.049,0.02,0.074,0.02c0.051,0,0.102-0.027,0.129-0.074C8.8,7.101,8.776,7.009,8.704,6.968z"></path>
</g>
</svg>

<svg version="1.1" id="cloud" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="10px" height="10px" viewBox="0 0 10 10" enable-background="new 0 0 10 10" xml:space="preserve">
<path fill="none" d="M8.528,5.624H8.247c-0.085,0-0.156-0.068-0.156-0.154c0-0.694-0.563-1.257-1.257-1.257c-0.098,0-0.197,0.013-0.3,0.038C6.493,4.259,6.45,4.252,6.415,4.229C6.38,4.208,6.356,4.172,6.348,4.131C6.117,3.032,5.135,2.235,4.01,2.235c-1.252,0-2.297,0.979-2.379,2.23c-0.004,0.056-0.039,0.108-0.093,0.13C1.076,4.793,0.776,5.249,0.776,5.752c0,0.693,0.564,1.257,1.257,1.257h6.495c0.383,0,0.695-0.31,0.695-0.692S8.911,5.624,8.528,5.624z"></path>
</svg>

<div class="rain">
<span class="drop"></span>
<span class="drop"></span>
<span class="drop"></span>
<span class="drop"></span>
<span class="drop"></span>
<span class="drop"></span>
<span class="drop"></span>
<span class="drop"></span>
<span class="drop"></span>
<span class="drop"></span>
</div>
<div class="text">
LOOKING OUTSIDE FOR YOU... ONE SEC
</div>
</div>
</div>
  • 还有个小问题就是我的加载动画会和说说冲突,可能是个bug吧,我把自己添加的加载动画删除了,说说页面就可以正常显示了,不然就一直是我的那个加载动画😥

★5月6号更新

更新后的使用更加简便,直接粘贴复制就可使用,代码精简化,功能更多,且支持markdown语法,页面漂亮了许多,期待作者更多的开发,若不是我对前端知识不太了解,我都想加入一起完善这个功能了😉。