有人用过hexo写博客吗?如果你使用过,并且懂得话,我在这里咨询一个问题:

如何克隆github上的博客内容克隆到本地呢?克隆到本地后,博客的主题是不是也一起克隆到了本地呢?是如何做到的?

还望大神们给解决,谢谢!

2 收藏


直接登录
最新评论
  • 逐鹿人王   2016/05/08

    Hexo是一个静态博客工具,这个大概的意思就是hexo可以将Markdown文件生成网页,并且根据主题渲染成网页,再发布到githubpage上进行托管,所以你如果是克隆的XXX.github.io这个repo里面都是生成好的html里面是没有直接的主题的。

    • 小青年之梦 java软件开发工程师 2016/05/08

      怎么安装主题呢?我克隆到本地后,运行 hexo s 命令报错:

      FATAL Something’s wrong. Maybe you can find the solution here: http://hexo.io/do cs/troubleshooting.html
      Error: Console `help` has not been registered yet!
      at D:\my blog\jinyunlong.github.io\node_modules\hexo\lib\hexo\index.js:194:1 4
      at Promise._execute (D:\my blog\jinyunlong.github.io\node_modules\hexo\node_ modules\bluebird\js\release\debuggability.js:272:9)
      at Promise._resolveFromExecutor (D:\my blog\jinyunlong.github.io\node_module s\hexo\node_modules\bluebird\js\release\promise.js:473:18)
      at new Promise (D:\my blog\jinyunlong.github.io\node_modules\hexo\node_modul es\bluebird\js\release\promise.js:77:14)
      at Hexo.call (D:\my blog\jinyunlong.github.io\node_modules\hexo\lib\hexo\ind ex.js:188:10)
      at runHexoCommand (D:\NodeJS\node_modules\hexo\node_modules\hexo-cli\lib\ind ex.js:58:17)
      at tryCatcher (D:\my blog\jinyunlong.github.io\node_modules\hexo\node_module s\bluebird\js\release\util.js:16:23)
      at Promise._settlePromiseFromHandler (D:\my blog\jinyunlong.github.io\node_m odules\hexo\node_modules\bluebird\js\release\promise.js:502:31)
      at Promise._settlePromise (D:\my blog\jinyunlong.github.io\node_modules\hexo \node_modules\bluebird\js\release\promise.js:559:18)
      at Promise._settlePromise0 (D:\my blog\jinyunlong.github.io\node_modules\hex o\node_modules\bluebird\js\release\promise.js:604:10)
      at Promise._settlePromises (D:\my blog\jinyunlong.github.io\node_modules\hex o\node_modules\bluebird\js\release\promise.js:683:18)
      at Async._drainQueue (D:\my blog\jinyunlong.github.io\node_modules\hexo\node _modules\bluebird\js\release\async.js:138:16)
      at Async._drainQueues (D:\my blog\jinyunlong.github.io\node_modules\hexo\nod e_modules\bluebird\js\release\async.js:148:10)
      at Immediate.Async.drainQueues [as _onImmediate] (D:\my blog\jinyunlong.gith ub.io\node_modules\hexo\node_modules\bluebird\js\release\async.js:17:14)
      at processImmediate [as _immediateCallback] (timers.js:383:17)

       

      能给看看这个是什么问题吗?