Skip to content

Commit 10c4bfd

Browse files
committed
update
1 parent c66f509 commit 10c4bfd

File tree

1 file changed

+0
-317
lines changed

1 file changed

+0
-317
lines changed

README.md

Lines changed: 0 additions & 317 deletions
Original file line numberDiff line numberDiff line change
@@ -1,319 +1,2 @@
11
#ZKG Blog
22

3-
###[View Live ZKG Blog →](https://huangxuan.me)
4-
5-
![](http://huangxuan.me/img/blog-desktop.jpg)
6-
7-
8-
9-
## Boilerplate (beta)
10-
11-
Want to clone a boilerplate instead of my buzz blog? Here comes this!
12-
13-
```
14-
$ git clone git@github.com:ZKGpro/ZKGblog-boilerplate.git
15-
```
16-
17-
**[View Boilerplate Here →](http://huangxuan.me/ZKGblog-boilerplate/)**
18-
19-
20-
## Porting
21-
22-
- [**Hexo**](https://github.com/Kaijun/hexo-theme-ZKGblog) by @kaijun
23-
- [**React-SSR**](https://github.com/LucasIcarus/ZKGpro.github.io/tree/ssr) by @LucasIcarus
24-
25-
## Translation
26-
27-
- ![cn](https://raw.githubusercontent.com/gosquared/flags/master/flags/flags/shiny/24/China.png) **Chinese (Simplified)**: 感谢 [@BrucZhaoR](https://github.com/BruceZhaoR)[中文翻译 →](https://github.com/ZKGpro/ZKGpro.github.io/blob/master/README.zh.md)
28-
29-
## Features
30-
31-
##### New Feature (V1.5.2)
32-
33-
- Annoyed to delete my blog post after clone or pull? **Boilerplate** comes to help you get started quickly and easily merge update.
34-
- `-apple-system` is added in font rule, which display beautiful new font **San Francisco** in iOS 9 by default.
35-
- Fixed [issue#15](https://github.com/ZKGpro/ZKGpro.github.io/issues/15) about code wrap.
36-
37-
##### New Feature (V1.5.1)
38-
39-
- **[Comment](#comment)** support [**Disqus**](http://disqus.com) officially, thanks to @rpsh.
40-
41-
##### New Feature (V1.5)
42-
43-
- **[Comment](#comment)** and **[Analytics](#analytics)** is configurable now! We also add **Google Analytics support** and drop tencents. Both documents is updated.
44-
45-
##### New Feature (V1.4)
46-
47-
- **[Featured Tags](#featured-tags)** is now independent of [SideBar](#sidebar). Both documents is updated.
48-
- New **[SEO Title](#seo-title)** for SEO usage which is differ from the site title
49-
50-
##### New Feature (V1.3.1)
51-
52-
- Support **PingFang (苹方)**, the new Chinese font presented by [OS X El Capitan](http://www.apple.com/cn/osx/whats-new/)
53-
54-
55-
##### New Feature (V1.3)
56-
57-
- Big Improvement to the **Navigation Menu** *(especially in Android)*: Dropping the old, stuttering, low-performance [Bootstrap collapse.js](http://getbootstrap.com/javascript/#collapse), replaced with an own wrote, [jank free](http://jankfree.org/) navbar menu in a pretty high-performance implementation of [Google Material Design](https://www.google.com/design/spec/material-design/introduction.html).
58-
59-
<img src="http://huangxuan.me/img/blog-md-navbar.gif" width="320" />
60-
61-
62-
##### New Feature (V1.2)
63-
64-
- Brand new **[Keynote Layout](#keynote-layout)** is provided for easily posting beautiful HTML presentations you have created with this blog
65-
66-
67-
##### New Feature (V1.1)
68-
69-
- We now support a clean and gorgeous **[SideBar](#sidebar)** for displaying more info
70-
- **[Friends](#friends)** is also added as a common feature of blog help you do SEO
71-
72-
##### V1.0
73-
74-
- Full-feature **Tag** support
75-
- **Mobile first** user experience optimization
76-
- **Typographic optimization** for Chinese Fonts
77-
- **Network optimizaition** for China, dropping Google webfont, using local CDN
78-
- Using [Github Flavored Markdown](https://help.github.com/articles/github-flavored-markdown/)
79-
- Using Baidu, Tencent/QQ analytics
80-
- Using [DuoShuo](http://duoshuo.com/) as the Disqus-like third party discussion system
81-
82-
83-
## Support
84-
85-
- **Feel free to fork. I'll Appreciate it if you keep the Author & Github link at footer**
86-
- Give it a **Star** if you like, fork or just clone to use ;)
87-
- If any problem or requirement, just open an issue here and I will help you.
88-
89-
90-
## Document
91-
92-
* Get Started
93-
* [Environment](#environment)
94-
* [Get Started](#get-started)
95-
* [Write Posts](#write-posts)
96-
* Components
97-
* [SideBar](#sidebar)
98-
* [Mini About Me](#mini-about-me)
99-
* [Featured Tags](#featured-tags)
100-
* [Friends](#friends)
101-
* [Keynote Layout](#keynote-layout)
102-
* Comment & Analysis
103-
* [Comment](#comment)
104-
* [Analytics](#analytics)
105-
* Advanced
106-
* [Customization](#customization)
107-
* [Header Image](#header-image)
108-
* [SEO Title](#seo-title)
109-
* [Page Build Warning](#page-build-warning)
110-
111-
#### Environment
112-
113-
If you have jekyll installed, simply run `jekyll serve` in Command Line
114-
and preview the themes in your browser. You can use `jekyll serve --watch` to watch for changes in the source files as well.
115-
116-
117-
#### Get Started
118-
119-
You can easily get started by modifying `_config.yml`:
120-
121-
```
122-
# Site settings
123-
title: ZKG Blog # title of your website
124-
SEOTitle: ZKG Blog # check out docs for more detail
125-
description: "Cool Blog" # ...
126-
127-
# SNS settings
128-
github_username: ZKGpro # modify this account to yours
129-
weibo_username: ZKGpro # the footer woule be auto-updated.
130-
131-
# Build settings
132-
# paginate: 10 # nums of posts in one page
133-
```
134-
135-
There are more options you can check out in the [Jekyll - Official Site](http://jekyllrb.com/), or you can directly dive into code to find more.
136-
137-
138-
#### Write Posts
139-
140-
Feel free to checkout Markdown files in the `_posts/`, you will quickly realized how to post your articles with magical markdown plus this nice theme.
141-
142-
The **front-matter** of a post looks like that:
143-
144-
```
145-
---
146-
layout: post
147-
title: "Hello 2015"
148-
subtitle: "Hello World, Hello Blog"
149-
date: 2015-01-29 12:00:00
150-
author: "ZKG"
151-
header-img: "img/post-bg-2015.jpg"
152-
tags:
153-
- Life
154-
---
155-
156-
```
157-
158-
#### SideBar
159-
160-
![](http://huangxuan.me/img/blog-sidebar.jpg)
161-
162-
Seeing more information may be necessary for you to display, from V1.1, a clean, gorgeous **SideBar** is added for you, which provide more area for displaying possible modules. You can enable *(it is default enable)* this feature by simply config:
163-
164-
```
165-
# Sidebar settings
166-
sidebar: true
167-
sidebar-about-description: "your description here"
168-
sidebar-avatar: /img/avatar-ZKG.jpg # use absolute URL.
169-
```
170-
171-
We default support *[Featured Tags](#featured-tags)*, *[Mini About Me](#mini-about-me)* and *[Friends](#friends)* these three modules and you can add your own. The sidebar is naturally responsive and would be push to bottom in a small screen size (`<= 992px`, according to [Bootstarp Grid System](http://getbootstrap.com/css/#grid))
172-
More details of these three separate modules are talking below.
173-
174-
#### Mini About Me
175-
176-
Mini-About-Me module display all your SNS buttons also your avatar and the description if you set `sidebar-avatar` and `sidebar-about-description` which is very useful and common for a sidebar so it is default with your sidebar.
177-
178-
It is really nice-looking and well-designed. It would be hidden in a small screen seeing the sidebar would be push to bottom and there is already a footer including SNS feature which is similar.
179-
180-
#### Featured Tags
181-
182-
Considering the Featured-Tags feature in [Medium](http://medium.com) is pretty cool, so I add it in my blog theme also.
183-
This module is independent of sidebar from V1.4, so it can definitely live without enable sidebar, which would be displayed in the bottom when `sidebar` set to false, and it is not only displayed in home page but also every post page bottom.
184-
185-
186-
```
187-
# Featured Tags
188-
featured-tags: true
189-
featured-condition-size: 1 # A tag will be featured if the size of it is more than this condition value
190-
```
191-
192-
The only one thing need to be paid attention to is the `featured-condition-size`: A tag will be featured if the size of it is more than this condition value.
193-
Internally, a condition template `{% if tag[1].size > {{site.featured-condition-size}} %}` is used to do the filter.
194-
195-
#### Friends
196-
197-
Friends is a very common feature of a blog seeing the SEO, so I add it in V1.1 release to help that.
198-
Friends can also live without enable sidebar, also be displayed in the bottom when sidebar unable, and be displayed in every post page bottom.
199-
200-
201-
You can just add your friends information in `_config.yml` with a familiar JSON syntax and everything is done, very easy:
202-
203-
```
204-
# Friends
205-
friends: [
206-
{
207-
title: "Foo Blog",
208-
href: "http://foo.github.io/"
209-
},
210-
{
211-
title: "Bar Blog",
212-
href: "http://bar.github.io"
213-
}
214-
]
215-
```
216-
217-
218-
#### Keynote Layout
219-
220-
![](http://huangxuan.me/img/blog-keynote.jpg)
221-
222-
There is a increasing tendency to use Open Web technology to create keynotes, presentations, like Reveal.js, Impress.js, Slides, Prezi etc. I consider a modern blog should have abilities to post these HTML based presentation easily also abilities to play it directly.
223-
224-
Under the hood, a `iframe` is used to include webpage from outer source, so the only things left is to give a url in the **front-matter**:
225-
226-
```
227-
---
228-
layout: keynote
229-
iframe: "http://huangxuan.me/js-module-7day/"
230-
---
231-
```
232-
233-
The iframe will be automatically resized to adapt different form factors also the device orientation. A padding is left to imply user that there has more content below, also to ensure that there is a area for user to scroll down in mobile device seeing most of the keynote framework prevent the browser default scroll behavior.
234-
235-
236-
#### Comment
237-
238-
This theme support both [Disqus](http://disqus.com) and [Duoshuo](http://duoshuo.com) as the third party discussion system.
239-
240-
First, you need to sign up and get your own account. **Repeat, DO NOT use mine!** (I have set Trusted Domains) It is deathly simple to sign up and you will get the full power of management system. Please give it a try!
241-
242-
Second, from V1.5, you can easily complete your comment configuration by just adding your **short name** into `_config.yml`:
243-
244-
```
245-
duoshuo_username: _your_duoshuo_short_name_
246-
# OR
247-
disqus_username: _your_disqus_short_name_
248-
```
249-
250-
**To the old version user**, it's better that you pull the new version, otherwise you have to replace code in `post.html`, `keynote.html` and `about.html` by yourselves.
251-
252-
Furthermore, Duoshuo support Sharing. if you only wanna use Duoshuo comment without sharing, you can set `duoshuo_share: false`. You can use Duoshuo Sharing and Disqus Comments together also.
253-
254-
255-
256-
#### Analytics
257-
258-
From V1.5, we support Google Analytics and Baidu Tongji officially with a deathly simple config:
259-
260-
```
261-
# Baidu Analytics
262-
ba_track_id: 4cc1f2d8f3067386cc5cdb626a202900
263-
264-
# Google Analytics
265-
ga_track_id: 'UA-49627206-1' # Format: UA-xxxxxx-xx
266-
ga_domain: huangxuan.me
267-
```
268-
269-
Just checkout the code offered by Google/Baidu, and copy paste here, all the rest is already done for you.
270-
271-
(Google might ask for meta tag "google-site-verification")
272-
273-
274-
#### Customization
275-
276-
If you wanna do more customization and change code yourself, a [Grunt](gruntjs.com) environment is also included. (Thanks to Clean Blog.)
277-
278-
There are a number of tasks it performs like minification of the JavaScript, compiling of the LESS files, adding banners to keep the Apache 2.0 license intact, and watching for changes. Run the grunt default task by entering `grunt ` into your command line which will build the files. You can use `grunt watch` if you are working on the JavaScript or the LESS.
279-
280-
**Try to understand code in `_include/` and `_layouts/`, then you can modify Jekyll [Liquid](https://github.com/Shopify/liquid/wiki) template directly to do more creative customization.**
281-
282-
283-
#### Header Image
284-
285-
Change header images of any pages or any posts is pretty easy as mentioned above. But, thanks to [issue #6 (in Chinese)](https://github.com/ZKGpro/ZKGpro.github.io/issues/6) asked, **how to make it looks great?**
286-
287-
**Well...it is actually a design issue**, not a coding stuff. It is better that you have basic design knowledge, but not is ok, let me told you how to make it well-designed:
288-
289-
Seeing the title text above image is **white**, the image should be **dark** to emphasize the contract. so we can easily add a **black overlay with fews of opacity**, which is depends on the brightness of the original images you used. you can process it in Photoshop, Sketch etc.
290-
291-
In technical views, it can be done with CSS. However, the opacity of the black overlay is really hard to assigned, **every image has different brightness so the degree it should be adjusted is different so it is impossible to hard code it.**
292-
293-
294-
#### SEO Title
295-
296-
Before V1.4, site setting `title` is not only used for displayed in Home Page and Navbar, but also used to generate the `<title>` in HTML.
297-
It's possible that you want the two things different. For me, my site-title is **“ZKG Blog”** but I want the title shows in search engine is **“黄玄的博客 | ZKG Blog”** which is multi-language.
298-
299-
So, the SEO Title is introduced to solve this problem, you can set `SEOTitle` different from `title`, and it would be only used to generate HTML `<title>` and setting DuoShuo Sharing.
300-
301-
#### Page Build Warning
302-
303-
There are many possible reasons to cause a "Page Build Warning" email or similar error.
304-
305-
One of these is that github changes its build environment.
306-
307-
> You are attempting to use the 'pygments' highlighter, which is currently unsupported on GitHub Pages. Your site will use 'rouge' for highlighting instead. To suppress this warning, change the 'highlighter' value to 'rouge' in your '_config.yml'.
308-
309-
So, just edit `_config.yml`, find `highlighter: pygments`, change it to `highlighter: rouge` and the warning will be gone.
310-
311-
For other circumstances, check out existing issues or create a new one!
312-
313-
## License
314-
315-
Apache License 2.0.
316-
Copyright (c) 2015-2016 ZKGpro
317-
318-
ZKG Blog is derived from [Clean Blog Jekyll Theme (MIT License)](https://github.com/BlackrockDigital/startbootstrap-clean-blog-jekyll/)
319-
Copyright (c) 2013-2016 Blackrock Digital LLC.

0 commit comments

Comments
 (0)