Hexo部署教程.md 764 B


notion-id: 3b941c12-c4a6-49b6-8e11-affead19ae

安装Nodejs 安装Git

npm install -g hexo-cli

相关指令:

hexo init

#hexo初始化生成框架文件,必须是空文件夹

hexo s

#部署服务器

hexo g 

#生成静态文件

部署主题 修改_config.yml 注意将theme修改成theme文件夹内的主题名称

# Extensions

## Plugins: https://hexo.io/plugins/

## Themes: https://hexo.io/themes/

theme: reimu

修改_config.yml 修改URL避免导致布局混乱

# URL

## Set your site url here. For example, if you use GitHub Page, set url as 'https://username.github.io/project'

url: https://zhensolid.gitee.io

将文件放入source文件内 避免路径错误