Skip to content

Commit

Permalink
improve document
Browse files Browse the repository at this point in the history
  • Loading branch information
minixbeta committed Apr 23, 2015
1 parent 0222806 commit 7823914
Showing 1 changed file with 54 additions and 3 deletions.
57 changes: 54 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,24 +18,75 @@ StrayBirds
2.[StrayBirds](https://github.com/minixalpha/StrayBirds) 页面,单击右上
角的 Fork
3. 到你 Fork 后的项目中,将 `_config.yml` 中的 username 修改为你的用户名 minixbeta
4.`_includes/comments.ext` 下,将 `disqus_shortname` 修改为你在 disqus 注册的站点短名字(这一步用于支持评论系统)
5. 访问你的博客 http://minixbeta.github.io/StrayBirds/
4. 访问你的博客 http://minixbeta.github.io/StrayBirds/

![create_project](/images/create_project.gif)

如果你想修改项目的名字,例如将 StrayBirds 修改为 blog,那么你需要做的是
### 配置

* 修改项目名

例如将 StrayBirds 修改为 blog,那么你需要做的是

1. 在项目的 Setting 中将 Repository name 从 StrayBirds 修改为 blog
2.`_config.yml` 中的 baseurl 修改为 /blog
3. 通过 http://minixbeta.github.io/blog/ 来访问你的新博客

![create_post](/images/change_project_name.gif)

* 修改主题

`_confg.yml` 下修改 theme 的值,可选主题包括:

- hack
![hack-demo](/images/hack-demo.png)
- leep-day
![leep-day-demo](/images/leep-day-demo.png)
- merlot
![merlot-demo](/images/merlot-demo.png)
- midnight
![midnight-demo](/images/midnight-demo.png)
- minimal
![minimal-demo](/images/minimal-demo.png)
- modernist
![modernist-demo](/images/modernist-demo.png)
- slate
![slate-demo](/images/slate-demo.png)
- time-machine
![time-machine-demo](/images/time-machine-demo.png)

* 修改评论系统用户名

我们的评论系统使用的是 [Disqus](https://disqus.com/),如果你想在这份博客模板中使用,需要先去注册一下,然后得到一个用户名,例如 minixalpha。然后在 `_config.yml` 中将 disqusname 修改为 minixalpha。

**千万注意: 如果你开启评论系统一定要修改这个值,不然就评论到我的评论系统中去了**

### 添加文章

`_post` 目录下添加形如 `2014-10-26-title.md` 的文章,用 markdown 格式
撰写博客。

例如:

```
---
layout: default
title: Java 中的并发
comments: true
---
## 如何创建一个线程
按 Java 语言规范中的说法,创建线程只有一种方式,就是创建一个 Thread 对象。而从 HotSpot 虚拟机的角度看,创建一个虚拟机线程
有两种方式,一种是创建 Thread 对象,另一种是创建 一个本地线程,加入到虚拟机线程中。
...
```

其中 `layout` 表示布局,不用改变,`title` 表示文章题目,`comments` 表示是否要开户评论。

![create_post](/images/create_post.gif)

## 感谢
Expand Down

0 comments on commit 7823914

Please sign in to comment.