Hexo搭建

官网

https://hexo.io

安装

npm install -g hexo-cli

配置

hexo init hexo-blog

vi _config.yml

deploy:
  type: git
  repo: https://your-repo.git
  branch: master

生成静态页

hexo g

本机测试

hexo s

上传

hexo d

主题

git clone https://github.com/theme-next/hexo-theme-next themes/next

RSS

npm install --save hexo-generator-feed
social:
  GitHub: https://your-repo.git
  : https://your-blog
social_icons:
  enable: true
  icons_only: false
  transition: false
  GitHub: github
  : book

侧边栏社交链接

social:
  GitHub: https://your-repo.git
  : https://your-blog
social_icons:
  enable: true
  icons_only: false
  transition: false
  GitHub: github
  : book

参考文档

  • https://hexo.io/zh-cn/docs/
  • https://www.jianshu.com/p/a19962485b4a
  • https://segmentfault.com/a/1190000013660164/

你可能感兴趣的:(Hexo搭建)