坂上河南子
文章98
标签0
分类18
Hexo博客搭建中

Hexo博客搭建中

搭建

本博客采用hexo博客搭建,
使用了nexmoe主题。
网站目前部署在github pages。
HTML音乐播放器使用APlayer。
评论插槽用的giscus
在ChatGPT4.0指导下完成

HEXO搭建

hexo最简单的入门教程:
https://zhuanlan.zhihu.com/p/492115006

超详细 Hexo + Github Pages 博客搭建教程
https://zhuanlan.zhihu.com/p/370635512

hexo主题样式
https://hexo.io/themes/

HEXO主题

nexmoe部署:
https://docs.nexmoe.com/zh/v4.0/

开源播放器

aplayer开源html播放器:
https://github.com/DIYgod/APlayer
此外,网易云的外链播放器,同一篇文章有两个音乐的情况,如果播放第一个,之后播放第二个,那么第一个音乐并不会停止。
(恼)
但是之前好多都嵌的网易云外链了。有空的话就改。没空

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<link rel="stylesheet" href="/asset/css/APlayer.min.css">
<script src="/asset/js/APlayer.min.js"></script>
<script>
document.addEventListener('DOMContentLoaded', function () {
const ap = new APlayer({
theme: '#FADFA3',
container: document.getElementById('my-aplayer'),
audio: [{
name: '同じ空の下で',
artist: 'KOTOKO',
url: '/asset/music/KOTOKO - 同じ空の下で.mp3',
cover: '/images/article/家族计划/003.png',
}]
});
});
</script>

<body>
<div id="my-aplayer"></div>
</body>

评论插槽

gitalk搭建
https://zhuanlan.zhihu.com/p/260781932
直接把html写进nexmoe的yml的评论框插槽里面就可以了。yml要注意一下格式。

注:字符超过50的问题我直接md5了地址,但实际上还是有页面会存在问题。
https://github.com/gitalk/gitalk/issues/102
出现问题再说吧

注2:Dispus仅支持国外社交账号,
Valine存在隐私漏洞,
Waline修改了漏洞但我没部署好(VERCEL似乎不通),
虽然gitalk需要暴露github账号但还是用这个了…

注3:好,gitalk需要管理员去每个页面访问一下产生一个issue才能我回复。
我不部署了,把时间还给我——

什么玩意儿,推倒重来了,用giscus了。
https://giscus.app/zh-CN

实际使用

hexo的文档分类标签有坑,见:分类方法的分歧
img
https://hexo.io/zh-cn/docs/front-matter

Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.

Quick Start

Create a new post

1
$ hexo new "My New Post"

More info: Writing

Run server

1
$ hexo server

More info: Server

Generate static files

1
$ hexo generate

More info: Generating

Deploy to remote sites

1
$ hexo deploy

More info: Deployment




我不愿让那些触动心弦的回忆化作随风飘散的齑粉,
我不愿让那些畅快淋漓的旅途成为无可追忆的往昔,
于是我提笔写下。

倘若我这些拙劣的文字在哪一天能够,
与咫尺天涯的他乡之客产生分毫共鸣,
给素未相识的萍水旅者带去些许指引,
那便我最好的慰藉。
本文作者:坂上河南子
本文链接:https://dangokanako.github.io/2023/04/29/%E6%8A%80%E6%9C%AF/%E5%8D%9A%E5%AE%A2%E6%90%AD%E5%BB%BA/
版权声明:本文采用 CC BY-NC-SA 3.0 CN 协议进行许可
×