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: <repository url>
  branch: [branch]
  message: [message]

Install hexo-deployer-git.

$ npm install hexo-deployer-git --save

就ok了

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

推荐阅读更多精彩内容