如何在远程仓库中将hexo博客安装到本地机器?

问题描述 投票:0回答:1

我在github页面中使用hexo。我错误地删除了本地机器中的本地文件。我尝试使用git clonehttps://github.com/aaayumi/aaayumi.github.io.git再次创建一个新的本地文件。然后我安装了npm install hexo-cli -g

我可以安装所有必要的文件但是当我键入hexo deploy时,它显示,

hexo deploy
Usage: hexo <command>

Commands:
  help     Get help on a command.
  init     Create a new Hexo folder.
  version  Display version information.

Global Options:
  --config  Specify config file instead of using _config.yml
  --cwd     Specify the CWD
  --debug   Display all verbose messages in the terminal
  --draft   Display draft posts
  --safe    Disable all plugins and scripts
  --silent  Hide output on console

For more help, you can use 'hexo help [command]' for the detailed information
or you can check the docs: http://hexo.io/docs/

有没有办法在本地使用hexo博客?

github-pages hexo
1个回答
1
投票

https://github.com/aaayumi/aaayumi.github.io中的代码不是您博客的源代码,它只是生成的内容。你需要的是你的source文件夹里面的原始markdown文件。

您将不得不使用hexo init重新创建博客并重写您的博客文章..对不起。

当然,您可以直接查看您的网站(http://ayumi-saito.com/)并重写帖子,从那里复制粘贴,不应该花那么长时间。

另外,为了确保不再发生这种情况,您可以将博客源文件发布到其他存储库中。所以总有一个副本。

PS:感谢您使用我的主题;)

© www.soinside.com 2019 - 2024. All rights reserved.