记录一下搭建这个博客的文档
快速开始安装Hexo局部安装hexo
1npm install hexo
把局部安装的执行文件目录加入环境变量
1echo 'PATH="$PATH:./node_modules/.bin"' >> ~/.profile
安装安知鱼主题1git clone -b main https://github.com/anzhiyu-c/hexo-theme-anzhiyu.git themes/anzhiyu
或者,如果你的博客也在一个git仓库里
1git submodule add https://github.com/anzhiyu-c/hexo-theme-anzhiyu.git themes/anzhiyu
把Hexo根目录下的config.yml里的theme改成anzhiyu
1theme: anzhiyu
安装pug和stylus1npm install hexo-renderer-pug hexo-renderer-stylus --save
覆盖配置1cp -rf ./themes ...
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 StartCreate a new post1$ hexo new "My New Post"
More info: Writing
Run server1$ hexo server
More info: Server
Generate static files1$ hexo generate
More info: Generating
Deploy to remote sites1$ hexo deploy
More info: Deployment


