Open ScottWei007 opened 7 years ago
创建github pages: 创建一个仓库,lilwei.github.io
安装Hexo: 前提安装git,安装node.js, 使用Git Bash命令行 : npm install -g hexo-cli
建站: hexo init hexo(自定义文件名) cd hexo npm install
关联hexo和github pages,编辑_config.yml文件(注意格式): deploy: type: git repo: https://github.com/lilwei/lilwei.github.io.git branch: master
本地测试: hexo s
访问:localhost:4000
发布到github(清除,生成,发布): hexo clean hexo g npm install hexo-deployer-git --save hexo d
远程访问:https://lilwei.github.io/
写文章时,可视化,安装hey插件: npm install hexo-hey --save
修改_config.yml配置文件(注意格式):
admin: name: hexo password: hey secret: hey hexo expire: 60*1
启动,访问本地写可视化文章,hexo s 访问http://localhost:4000/admin
创建github pages: 创建一个仓库,lilwei.github.io
安装Hexo: 前提安装git,安装node.js, 使用Git Bash命令行 : npm install -g hexo-cli
建站: hexo init hexo(自定义文件名) cd hexo npm install
关联hexo和github pages,编辑_config.yml文件(注意格式): deploy: type: git repo: https://github.com/lilwei/lilwei.github.io.git branch: master
本地测试: hexo s
访问:localhost:4000
发布到github(清除,生成,发布): hexo clean hexo g npm install hexo-deployer-git --save hexo d
远程访问:https://lilwei.github.io/
写文章时,可视化,安装hey插件: npm install hexo-hey --save
修改_config.yml配置文件(注意格式):
Admin
admin: name: hexo password: hey secret: hey hexo expire: 60*1
cors: http://localhost:3000
启动,访问本地写可视化文章,hexo s 访问http://localhost:4000/admin