您好,欢迎来到二三娱乐。
搜索
您的当前位置:首页Hexo 安装成功

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.
deploy:
  type: git
  repo: <repository url>
  branch: [branch]
  message: [message]

Install hexo-deployer-git.

$ npm install hexo-deployer-git --save

就ok了

Copyright © 2019- yule263.com 版权所有 湘ICP备2023023988号-1

违法及侵权请联系:TEL:199 1889 7713 E-MAIL:2724546146@qq.com

本站由北京市万商天勤律师事务所王兴未律师提供法律服务