我在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博客?
https://github.com/aaayumi/aaayumi.github.io中的代码不是您博客的源代码,它只是生成的内容。你需要的是你的source
文件夹里面的原始markdown文件。
您将不得不使用hexo init
重新创建博客并重写您的博客文章..对不起。
当然,您可以直接查看您的网站(http://ayumi-saito.com/)并重写帖子,从那里复制粘贴,不应该花那么长时间。
另外,为了确保不再发生这种情况,您可以将博客源文件发布到其他存储库中。所以总有一个副本。
PS:感谢您使用我的主题;)