Hexo 安装成功

花了两个晚上,从知道Hexo到使用到部署到Github上中间遇到了一些坑,首先就是版本的问题。

  • nodejs
  • git

安装hexo

npm install -g hexo
 clean     Removed generated files and cache.
 config    Get or set configurations.
 deploy    Deploy your website.
 generate  Generate static files.
 help      Get help on a command.
 init      Create a new Hexo folder.
 list      List the information of the site
 migrate   Migrate your site from other system to Hexo.
 new       Create a new post.
 publish   Moves a draft post from _drafts to _posts folder.
 render    Render files with renderer plugins.
 server    Start the server.
 version   Display version information.

最后一步发布到github上,这个要参照官方文档如下

deploy:
  type: git
  repo: 
  branch: [branch]
  message: [message]

Install hexo-deployer-git.

$ npm install hexo-deployer-git --save

就ok了

你可能感兴趣的:(Hexo 安装成功)