我在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博客?
发布于 2017-12-18 10:54:35
https://github.com/aaayumi/aaayumi.github.io中的代码不是你的博客的源代码,它只是生成的内容。您需要的是source文件夹中的原始标记文件。
你将不得不用hexo init重新创建博客并重写你的博客文章。很抱歉。
当然,您可以直接查看您的网站(http://ayumi-saito.com/),并重写帖子,从那里复制粘贴,这应该不会花那么长时间。
此外,为了确保这种情况不会再次发生,您可以在不同的存储库中发布您的博客源文件。所以总会有一份副本。
PS:感谢你使用我的主题;)
https://stackoverflow.com/questions/47848815
复制相似问题