hexo d和hexo deploy -g无法正常工作

时间:2019-01-16 22:50:28

标签: hexo

我正在尝试将hexo博客推送到我的github存储库,直到最后一步,hexo d无法正常工作,我还尝试了hexo deploy -g,也无法正常工作。因此,我的存储库未更新。

我在博客根文件夹中找不到.deploy文件夹。据说删除此文件夹也可以解决。

我不确定这是怎么回事。

git svn clone https://myurl -s -A authors-transform.txt

_config.yml

hexo d      - with no output at all
-----------
hexo deploy -g    - the output is listed below, so i guess the hexo g works.
-----------
hexo clean
hexo g
hexo d

none is working

与hexo d

deploy:
  type:git
  repo:https://github.com/puddlejumper26/xiangblog.github.io.git

使用hexo部署g

d:\100-Blog\xiang>hexo d

d:\100-Blog\xiang>

1 个答案:

答案 0 :(得分:0)

i got it fixed, it's in the _config.yml file,

after :, there should be a space, otherwise, the file could not be used

wrong version:

deploy:
  type:git
  repo:https://github.com/puddlejumper26/xiangblog.github.io.git

right version:

deploy:
  type: git
  repo: https://github.com/puddlejumper26/xiangblog.github.io.git