Skip to content

Commit

Permalink
chore: upadte test & add _config.dev & readme
Browse files Browse the repository at this point in the history
  • Loading branch information
kitian616 committed Nov 11, 2017
1 parent c8daca2 commit 6ce76f5
Show file tree
Hide file tree
Showing 9 changed files with 122 additions and 28 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,19 +122,19 @@ bundle exec jekyll serve -H 0.0.0.0

### 评论系统

_config.yml 文件的 `disqus.shortname` 项填上你在 [Disqus](https://disqus.com/) 上为网站建立的 site 对应的 shortname,需要注意的是 Disqus 在大陆是无法直接访问的。
\_config.yml 文件的 `disqus.shortname` 项填上你在 [Disqus](https://disqus.com/) 上为网站建立的 site 对应的 shortname,需要注意的是 Disqus 在大陆是无法直接访问的。

> 注意:使用评论系统必须在文章的头信息中设置 key 值(可用字符集:`字母``数字``- _ : .`)。
### 阅读量统计

_config.yml 文件 `leancloud``app_id``app_key``app_class` 项分别填上你在 [LeanCloud](https://leancloud.cn) 为网站建立的应用的对应参数。
\_config.yml 文件 `leancloud``app_id``app_key``app_class` 项分别填上你在 [LeanCloud](https://leancloud.cn) 为网站建立的应用的对应参数。

> 注意:使用阅读量统计必须在文章的头信息中设置 key 值(可用字符集:`字母``数字``- _ : .`)。
### Google Analytics

_config.yml 文件的 `ga_tracking_id` 项填上你在 [Google Analytics](https://analytics.google.com) 上为网站建立的媒体资源对应的跟踪 ID。
\_config.yml 文件的 `ga_tracking_id` 项填上你在 [Google Analytics](https://analytics.google.com) 上为网站建立的媒体资源对应的跟踪 ID。

### Markdown 头信息增强

Expand All @@ -150,7 +150,7 @@ bundle exec jekyll serve -H 0.0.0.0

### 其他资源

_includes/icon/social 目录下有很多的社交产品图标,例如 Behance、Flickr、QQ、微信等,方便修改和使用。
./\_includes/icon/social 目录下有很多的社交产品图标,例如 Behance、Flickr、QQ、微信等,方便修改和使用。

## 示例

Expand Down
93 changes: 93 additions & 0 deletions _config.dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@

# Welcome to Jekyll!
#
# This config file is meant for settings that affect your whole blog, values
# which you are expected to set up once and rarely need to edit after that.
# For technical reasons, this file is *NOT* reloaded automatically when you use
# 'jekyll serve'. If you change this file, please restart the server process.

# ,--------. ,--. ,--. ,--.
# '--. .--',---. \ `.' /,-' '-.
# | | | .-. : .' \ '-. .-'
# | | \ --. / .'. \ | |
# `--' `----''--' '--' `--'

## Base settings ##
# url: # the base hostname & protocol for your site e.g. https://www.someone.com
baseurl: '/'
title: Someone's blog
description: > #this means to ignore newlines until "nav_lists:"
Someone's Blog
nav_lists:
- title: About
url: /about.html

## GitHub repository (if the site is hosted by GitHub) ##
# repository: e.g. someone.github.io
# repository_tree: e.g. master

## Language & timezone ##
lang: zh #the language of your site
timezone: Asia/Shanghai

## Author & social ##
author:
name: Someone
email: someone@somemail.com #your Email address e.g. someone@site.com
facebook: someone #your Facebook username
twitter: someone #your Twitter username
github: someone #your GitHub username
googleplus: someone #your Google+ username
weibo: someone #your Weibo username
douban: someone #your Douban username
linkedin: someone #your Linkedin username

## Comment system (Disqus) ##
disqus:
# shortname: #the Disqus shortname for the site

## Google Analytics ##
# ga_tracking_id: #Google analytics id for the site

## Reading quantity (LeanCloud) ##
leancloud:
# app_id: #LeanCloud App id
# app_key: #LeanCloud App key
# app_class: #LeanCloud App class

# mathjax: true

## Paginate ##
paginate: 5
paginate_path: /blog/page:num

## Post excerpts ##
excerpt_separator: <!--more-->
excerpt_type: html ## text | html

## Build ##
markdown: kramdown
highlighter: rouge
permalink: date

exclude:
- CHECKLIST.md
- README.md
- LICENSE
- /docs
- /screenshots
- /test

## Plugins ##
gems:
- jekyll-sitemap
- jekyll-feed
- jekyll-paginate
- jemoji

## Server ##
server_url: "0.0.0.0"

## Development ##
isdebug: false
6 changes: 6 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@
# For technical reasons, this file is *NOT* reloaded automatically when you use
# 'jekyll serve'. If you change this file, please restart the server process.

# ,--------. ,--. ,--. ,--.
# '--. .--',---. \ `.' /,-' '-.
# | | | .-. : .' \ '-. .-'
# | | \ --. / .'. \ | |
# `--' `----''--' '--' `--'

## Base settings ##
# url: # the base hostname & protocol for your site e.g. https://www.someone.com
baseurl: '/'
Expand Down
15 changes: 0 additions & 15 deletions _layouts/home-base.html

This file was deleted.

1 change: 0 additions & 1 deletion _sass/components/_article.content.scss
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
margin: $content-gap 0;
font-size: $small-font-size;
color: $text-color-l;
background-color: $text-background-color;
p {
margin: $content-gap * .5 0;
}
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
"scripts": {
"build": "bundle exec jekyll build",
"serve": "bundle exec jekyll serve -H 0.0.0.0",
"dev": "bundle exec jekyll serve -H 0.0.0.0 -t",
"posts-sp": "cp -rfv ./test/_posts/** ./_posts",
"dev": "bundle exec jekyll serve -H 0.0.0.0 -t --config ./_config.dev.yml",
"posts-cp": "cp -rfv ./test/_posts/** ./_posts",
"posts-rm": "rm -rfv ./_posts/**",
"favicon": "gulp favicon",
"icons": "gulp icons",
Expand Down
6 changes: 6 additions & 0 deletions test/_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@
## Use TeXt theme !!!
theme: jekyll-text-theme

# ,--------. ,--. ,--. ,--.
# '--. .--',---. \ `.' /,-' '-.
# | | | .-. : .' \ '-. .-'
# | | \ --. / .'. \ | |
# `--' `----''--' '--' `--'

## Base settings ##
# url: # the base hostname & protocol for your site e.g. https://www.someone.com
baseurl: '/'
Expand Down
15 changes: 10 additions & 5 deletions test/_posts/2016-03-03-code.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,10 @@ Ut erat nisl, dignissim et iaculis ac, adipiscing non ipsum. `/r/n` Vivamus orna

`<p>Hello Workd!</p>`

{% highlight javascript %}
(() => console.log('hello, world!'))();
{% endhighlight %}
(() => console.log('hello, world!'))();

{% highlight javascript %}
(() => console.log('hello, world! hello, world! hello, world! hello, world! hello, world! hello, world! hello, world! hello, world!'))();
(() => console.log('hello, world!'))();
{% endhighlight %}

<!--more-->
Expand All @@ -25,6 +23,13 @@ Ut erat nisl, dignissim et iaculis ac, adipiscing non ipsum. `/r/n` Vivamus orna
(() => console.log('hello, world! hello, world! hello, world! hello, world! hello, world! hello, world! hello, world! hello, world!'))();
```

(() => console.log('hello, world!'))();
```javascript
(() => console.log('hello, world!')
```
{% highlight javascript %}
(() => console.log('hello, world! hello, world! hello, world! hello, world! hello, world! hello, world! hello, world! hello, world!'))();
{% endhighlight %}
Morbi dictum magna vitae mi malesuada laoreet. Proin tempus laoreet leo in lobortis. In sit amet ipsum vel massa fringilla volutpat. Aenean dictum odio in ligula egestas iaculis. Maecenas ut massa quis velit consectetur faucibus in in lectus. Praesent ac mauris nec tortor suscipit aliquam eu nec justo. Nulla facilisi. Curabitur sit amet ligula ante.
2 changes: 1 addition & 1 deletion test/_posts/2016-08-08-blockquotes.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ key: 20160808
tags: markdown
---

> Donec massa lacus, ultricies a ullamcorper in, fermentum sed augue.
> Donec massa lacus, ultricies a `ullamcorper` in, fermentum sed augue.
<!--more-->

Expand Down

0 comments on commit 6ce76f5

Please sign in to comment.