使用 Hexo,Material Theme 以及 Github Pages 搭建个人博客
准备条件
- Node.js
- npm
- Git
- GitHub账号
开始搭建
hexo init Blogcd Blognpm install hexo-deployer-git --savenpm install hexo-materialcp node_modules/hexo-material themes/material- 修改博客根目录下的
_config.yml中的以下项:title: JustSong author: Song language: en theme: material deploy: type: git repository: https://github.com/songwonderful/songwonderful.github.io branch: master - 重命名
themes/material下的_config.template.yml为_config.yml并修改以下项:slogan: "尽人事,听天命" github: https://github.com/songwonderful zhihu: https://www.zhihu.com/people/songwonderful/
注意事项
- Powershell下中文显示可能不正常,推荐使用CMD
- 使用
npm install hexo-material仅仅是为了获取主题文件 - 使用
git config core.autocrlf true消除LF will be replaced by CRLF警告
常用命令
hexo new "article name"hexo g -dhexo shexo new page about
【未经允许,禁止转载】

浙公网安备 33010602011771号