Git命令

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 Start

Create a new post

git启动本地服务

1
$ hexo cl; hexo s

推送更新上线

1
$ hexo cl; hexo g; hexo d

新建文章命令

1
hexo new 这是一篇新的博文

新建标签页命令

1
hexo new page 新建的标签页

图床网址

1
https://img.090227.xyz/

添加任意文件

例如当我们想在网站根目录添加ads.txt文件,来通过站长验证时,我们只需要在/source文件夹下放置该文件即可。

1
$ hexo new "My New Post"

More info: Writing

Run server

1
$ hexo server

More info: Server

Generate static files

1
$ hexo generate

More info: Generating

Deploy to remote sites

1
$ hexo deploy

More info: Deployment