搭建一个用 hexo-theme-claude 生成的静态博客,然后部署到 GitHub Pages。
1. 创建一个演示博客仓库
1 2 3 4
| hexo init hexo-theme-claude-demo cd hexo-theme-claude-demo npm install
|
2. 安装主题
1
| git clone https://github.com/bojue/hexo-theme-claude.git themes/hexo-theme-claude
|
3. 配置 Hexo
编辑根目录 _config.yml:
1 2 3 4
| title: hexo-theme-claude Demo theme: hexo-theme-claude url: https://bojue.github.io/hexo-theme-claude-demo root: /hexo-theme-claude-demo/
|
4. 生成并部署
1 2 3 4 5 6 7 8 9 10 11 12
| npm install hexo-deployer-git --save
deploy: type: git repo: https://github.com/bojue/hexo-theme-claude-demo.git branch: gh-pages
hexo generate hexo deploy
|