首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >如何将hexo博客远程安装到本地机器?

如何将hexo博客远程安装到本地机器?
EN

Stack Overflow用户
提问于 2017-12-17 02:35:22
回答 1查看 129关注 0票数 0

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

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

代码语言:javascript
复制
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博客?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2017-12-18 10:54:35

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

你将不得不用hexo init重新创建博客并重写你的博客文章。很抱歉。

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

此外,为了确保这种情况不会再次发生,您可以在不同的存储库中发布您的博客源文件。所以总会有一份副本。

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

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/47848815

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档