This is my first trial to deploy a web page on Git.
Here are my refs:
ref1
ref2
ref3
Steps to follow
Create a new post
1 |
$ hexo new "My New Post" |
将在source文件夹中生成一个markdown(.md)文件
More info: Writing
Run server
1 |
$ hexo server |
可在localhost:4000查看
More info: Server
Generate static files
1 |
$ hexo generate |
对source中的.md文件编辑之后使用该命令可以生成一个静态网页
More info: Generating
Deploy to remote sites
1 |
$ hexo deploy |
将静态网页部署到git上。
More info: Deployment
Themes
clone a theme to Doc. themes
1 |
$ git clone https://github.com/litten/hexo-theme-yilia.git themes/yilia |
change the config
把_config.yml 更改theme theme: yilia
1 |
hexo clean |
更新主题之前要删除之前的旧样式
refresh
1 |
$ cd themes/yilia |
近期评论