Blog
未读
参考了很多视频教程终于是把hexo部署成功了,并且绑定了自己的域名,这篇文章主要对部署过程中的用到的一些命令和hexo基础使用做个简单总结,加深下学习印象。
CD 定位文件夹位置使用 cd .. 返回上一级目录。使用 cd ../.. 返回两级目录。使用 cd ~ 返回用户主目录。使用 cd / 返回根目录。
延伸一下关于文件夹的介绍scaffoldsscaffolds是“脚手架、骨架”的意思,当你新建一篇文章(hexo new ‘title’)的时候,hexo是根据这个目录下的文件进行构建的。基本不用关心。一般而言会有三个不同的选择,分别是draft、post、page三个模板,其中可以自定义需要的项目:
123456---title: {{ title }}date: {{ date }}categories:tags:---
draft(草稿) - 这是Hexo中用于存放草稿文章的模板。当你新建一篇文章并将其指定为草稿时,它会被放在特定的草稿目录下。草稿不会直接显示在网站上,你可以随时修改 ...
Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.
Quick StartCreate a new post1$ hexo new "My New Post"
More info: Writing
Run server1$ hexo server
More info: Server
Generate static files1$ hexo generate
More info: Generating
Deploy to remote sites1$ hexo deploy
More info: Deployment