Hello hexo

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.

安装

安装准备

win下

下载git-2.43.1-64.exe并安装

下载node-v16.13.1-x64.exe并安装

执行步骤

1
2
3
git config --global user.name "你的GitHub用户名"
git config --global user.email "你的GitHub注册邮箱"
ssh-keygen -t rsa -C "你的GitHub注册邮箱"

打开GitHub_Settings_keys 页面,新建new SSH Key

Title为标题,任意填即可,将刚刚复制的id_rsa.pub内容粘贴进去,最后点击Add SSH key。

安装hexo

打开cmd

1
npm install -g hexo-cli 

建个站点的文件夹,在文件夹中打开cmd

1
2
3
hexo init
hexo g
hexo s

编辑_config.yml文件

在文件最后加上:

deploy:
type: git
repo: 这里填入你之前在GitHub上创建仓库的完整路径,记得加上 .git

后执行:

1
2
3
4
npm install hexo-deployer-git --save
hexo clean
hexo g
hexo d

Quick Start

Create a new post

1
$ hexo n 标题

More info: Writing

MarkDown 语法

这是一个图床

插入格式(中间无空格)
! [ ] (图床网址)

效果:

siva

Run server

1
$ hexo server

More info: Server

Generate static files

1
2
$ hexo clean
$ hexo g

More info: Generating

Deploy to remote sites

1
$ hexo d

More info: Deployment

关于自定义域名

github的master-setting-pages绑定好自己的域名后,执行

1
$ hexo clean & hexo g & hexo d

后,绑定的域名会消失。需要在github上重新绑定,这个问题困扰了我两天,今天终于解决。

解决办法:

在source文件夹里新建文本CNAME,无扩展名,无文件类型。只写上绑定的域名xx.xxx.com即可(无https://)。

安装kdenlive并配置音频转文本功能

选择好语言包,需要设置python为系统path:环境变量

android安装hexo请参考:

https://yzyyz.top/archives/c34106b.html