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

参考文档

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容