Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b7b9c6a

Browse files
author
chenminghua
committed
init
init
1 parent a48ad2a commit b7b9c6a

File tree

579 files changed

+48407
-23
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

579 files changed

+48407
-23
lines changed

.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
_site/
2+
*.swp
3+
*.~vsd
4+
\#*\#
5+
*~
6+
.DS_Store
7+
Gemfile.lock

CNAME

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
mazhuang.org

Gemfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
source 'https://rubygems.org'
2+
gem 'github-pages', group: :jekyll_plugins

LICENSE

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2013 Zhuang Ma
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy of
6+
this software and associated documentation files (the "Software"), to deal in
7+
the Software without restriction, including without limitation the rights to
8+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9+
the Software, and to permit persons to whom the Software is furnished to do so,
10+
subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
17+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

README.md

Lines changed: 67 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,82 @@
1-
## Welcome to GitHub Pages
1+
# 码志
22

3-
You can use the [editor on GitHub](https://github.com/trimcode/trimcode.github.io/edit/master/README.md) to maintain and preview the content for your website in Markdown files.
3+
我的个人博客:<https://mazhuang.org>,欢迎 Star 和 Fork。
44

5-
Whenever you commit to this repository, GitHub Pages will run [Jekyll](https://jekyllrb.com/) to rebuild the pages in your site, from the content in your Markdown files.
5+
## 概览
66

7-
### Markdown
7+
<!-- vim-markdown-toc GFM -->
88

9-
Markdown is a lightweight and easy-to-use syntax for styling your writing. It includes conventions for
9+
* [效果预览](#效果预览)
10+
* [Fork 指南](#fork-指南)
11+
* [贴心提示](#贴心提示)
12+
* [经验与思考](#经验与思考)
13+
* [致谢](#致谢)
1014

11-
```markdown
12-
Syntax highlighted code block
15+
<!-- vim-markdown-toc -->
1316

14-
# Header 1
15-
## Header 2
16-
### Header 3
17+
## 效果预览
1718

18-
- Bulleted
19-
- List
19+
**[在线预览 &rarr;](https://mazhuang.org)**
2020

21-
1. Numbered
22-
2. List
21+
![screenshot home](https://mazhuang.org/assets/images/screenshots/home.png)
2322

24-
**Bold** and _Italic_ and `Code` text
23+
## Fork 指南
2524

26-
[Link](url) and ![Image](src)
27-
```
25+
Fork 本项目之后,还需要做一些事情才能让你的页面「正确」跑起来。
2826

29-
For more details see [GitHub Flavored Markdown](https://guides.github.com/features/mastering-markdown/).
27+
1. 正确设置项目名称与分支。
3028

31-
### Jekyll Themes
29+
按照 GitHub Pages 的规定,名称为 `username.github.io` 的项目的 master 分支,或者其它名称的项目的 gh-pages 分支可以自动生成 GitHub Pages 页面。
3230

33-
Your Pages site will use the layout and styles from the Jekyll theme you have selected in your [repository settings](https://github.com/trimcode/trimcode.github.io/settings). The name of this theme is saved in the Jekyll `_config.yml` configuration file.
31+
2. 修改域名。
3432

35-
### Support or Contact
33+
如果你需要绑定自己的域名,那么修改 CNAME 文件的内容;如果不需要绑定自己的域名,那么删掉 CNAME 文件。
3634

37-
Having trouble with Pages? Check out our [documentation](https://help.github.com/categories/github-pages-basics/) or [contact support](https://github.com/contact) and we’ll help you sort it out.
35+
3. 修改配置。
36+
37+
网站的配置基本都集中在 \_config.yml 文件中,将其中与个人信息相关的部分替换成你自己的,比如网站的 url、title、subtitle 和第三方评论模块的配置等。
38+
39+
**评论模块:** 目前支持 disqus、gitment 和 gitalk,选用其中一种就可以了,推荐使用 gitalk。它们各自的配置指南链接在 \_config.yml 文件的 Comments 一节里都贴出来了。
40+
41+
**注意:** 如果使用 disqus,因为 disqus 处理用户名与域名白名单的策略存在缺陷,请一定将 disqus.username 修改成你自己的,否则请将该字段留空。我对该缺陷的记录见 [Issues#2][3]
42+
43+
4. 删除我的文章与图片。
44+
45+
如下文件夹中除了 template.md 文件外,都可以全部删除,然后添加你自己的内容。
46+
47+
* \_posts 文件夹中是我已发布的博客文章。
48+
* \_drafts 文件夹中是我尚未发布的博客文章。
49+
* \_wiki 文件夹中是我已发布的 wiki 页面。
50+
* images 文件夹中是我的文章和页面里使用的图片。
51+
52+
5. 修改「关于」页面。
53+
54+
pages/about.md 文件内容对应网站的「关于」页面,里面的内容多为个人相关,将它们替换成你自己的信息,包括 \_data 目录下的 skills.yml 和 social.yml 文件里的数据。
55+
56+
## 贴心提示
57+
58+
1. 排版建议遵照一定的规范,推荐 [中文文案排版指北(简体中文版)][1]
59+
60+
2. 在本地预览博客效果可以参考 [Setting up your Pages site locally with Jekyll][2]
61+
62+
## 经验与思考
63+
64+
* 简约,尽量每个页面都不展示多余的内容。
65+
66+
* 有时一图抵千言,有时可能只会拖慢网页加载速度。
67+
68+
* 言之有物,不做无痛之呻吟。
69+
70+
* 如果写技术文章,那先将技术原理完全理清了再开始写,一边摸索技术一边组织文章效率较低。
71+
72+
* 杜绝难断句、难理解的长句子,如果不能将其拆分成几个简洁的短句,说明脑中的理解并不清晰。
73+
74+
* 可以学习一下那些高质量的博主,他们的行文,内容组织方式,有什么值得借鉴的地方。
75+
76+
## 致谢
77+
78+
本博客外观基于 [DONGChuan](https://dongchuan.github.io) 修改,感谢!
79+
80+
[1]: https://github.com/mzlogin/chinese-copywriting-guidelines
81+
[2]: https://help.github.com/articles/setting-up-your-pages-site-locally-with-jekyll/
82+
[3]: https://github.com/mzlogin/mzlogin.github.io/issues/2

_config.yml

Lines changed: 125 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,125 @@
1-
theme: jekyll-theme-minimal
1+
# ---------------- #
2+
# Main Configs #
3+
# ---------------- #
4+
baseurl:
5+
url: https://mazhuang.org
6+
date_format: "ordinal"
7+
title: 码志
8+
subtitle: "打码改变人生"
9+
description: "马壮的个人博客"
10+
keywords: 码志, Zhuang Ma, mzlogin, mazhuang
11+
timezone: Asia/Shanghai
12+
encoding: "utf-8"
13+
side_bar_repo_limit: 5
14+
15+
# ---------------- #
16+
# Author #
17+
# ---------------- #
18+
author: Zhuang Ma
19+
organization:
20+
organization_url:
21+
github_username: mzlogin
22+
location: Wuhan, China
23+
24+
25+
# ---------------- #
26+
# Navigation #
27+
# ---------------- #
28+
navs:
29+
-
30+
href: /
31+
label: 首页
32+
33+
-
34+
href: /categories/
35+
label: 分类
36+
37+
# -
38+
# href: /archives/
39+
# label: 归档
40+
41+
-
42+
href: /wiki/
43+
label: 维基
44+
45+
-
46+
href: /links/
47+
label: 链接
48+
49+
-
50+
href: /about/
51+
label: 关于
52+
53+
# ---------------- #
54+
# RSS #
55+
# ---------------- #
56+
subscribe_rss: /feed.xml
57+
58+
# ---------------- #
59+
# Jekyll #
60+
# ---------------- #
61+
markdown: kramdown
62+
kramdown:
63+
input: GFM
64+
highlighter: rouge
65+
paginate: 10
66+
lsi: false
67+
quiet: false
68+
excerpt_separator: "\n\n"
69+
permalink: /:year/:month/:day/:title/
70+
gems:
71+
- jekyll-github-metadata
72+
- rouge
73+
# - jekyll-html-pipeline
74+
- jekyll-paginate
75+
- jekyll-sitemap
76+
- jekyll-feed
77+
- jemoji
78+
# - jekyll-mentions
79+
collections:
80+
wiki:
81+
output: true
82+
permalink: /wiki/:path/
83+
84+
repository: mzlogin/mzlogin.github.io
85+
86+
# ---------------- #
87+
# Comments #
88+
# ---------------- #
89+
# support provider: disqus, gitment, gitalk
90+
comments_provider: gitalk
91+
# !!!重要!!! 请修改下面这些信息为你自己申请的
92+
# !!!Important!!! Please modify infos below to yours
93+
# https://disqus.com
94+
disqus:
95+
username:
96+
# https://imsun.net/posts/gitment-introduction/
97+
gitment:
98+
owner: mzlogin
99+
repo: blog-comments
100+
oauth:
101+
client_id: d2e1cbbd298958076462
102+
client_secret: b42a4178e5fd4a7cf63189ef4b1453b05c375709
103+
# https://github.com/gitalk/gitalk#install
104+
gitalk:
105+
owner: mzlogin
106+
repo: blog-comments
107+
clientID: d2e1cbbd298958076462
108+
clientSecret: b42a4178e5fd4a7cf63189ef4b1453b05c375709
109+
# 在使用其它评论组件时可点击显示 Disqus
110+
lazy_load_disqus : false
111+
112+
# ---------------- #
113+
# Search #
114+
# ---------------- #
115+
simple_jekyll_search:
116+
# 是否支持全文搜索
117+
fulltext: false
118+
# 最多显示多少条搜索结果
119+
limit: 10
120+
121+
# ---------------- #
122+
# Analytics #
123+
# ---------------- #
124+
google:
125+
analytics_id: UA-80669434-1

_data/links.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
- name: 码志
2+
url: http://mazhuang.org
3+
4+
- name: Connie 酱
5+
url: https://connie99.github.io
6+
7+
- name: 只宁静不致远
8+
url: http://zxning.github.io
9+
10+
- name: Blog Something
11+
url: http://chenxiaoyoyo.github.io
12+
13+
- name: 日新亭
14+
url: http://www.fengerzh.com/
15+
16+
- name: 叮咚购
17+
url: http://www.ringwang.com/
18+
19+
- name: wanandroid
20+
url: http://www.wanandroid.com/
21+
22+
- name: ZZY补完计划
23+
url: https://zzycreate.github.io/
24+
25+
- name: 村农
26+
url: http://www.why-dong.com/

_data/skills.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
- name: Software Engineer Keywords
2+
keywords:
3+
- Java
4+
- C++
5+
- Python
6+
- Design Patterns
7+
8+
- name: Mobile Developer Keywords
9+
keywords:
10+
- Android
11+
- Reverse Engineering
12+
13+
- name: Windows Developer Keywords
14+
keywords:
15+
- Win32 SDK
16+
- DuiLib
17+
- WTL
18+
- COM
19+
- WinDbg

_data/social.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
- sitename: GitHub
2+
name: mzlogin
3+
url: https://github.com/mzlogin
4+
5+
- sitename: 掘金
6+
name: mzlogin
7+
url: http://gold.xitu.io/user/570ddaeb2e958a005c63b2da
8+
9+
- sitename: LinkedIn
10+
name: mazhuang
11+
url: https://www.linkedin.com/in/mazhuang
12+
13+
- sitename: 博客
14+
name: 码志
15+
url: http://mazhuang.org
16+
17+
- sitename: 微博
18+
name: mzlogin
19+
url: http://weibo.com/mzlogin
20+
21+
- sitename: 知乎
22+
name: mzlogin
23+
url: http://www.zhihu.com/people/mzlogin
24+
25+
- sitename: 豆瓣
26+
name: 壮哥不胖
27+
url: http://www.douban.com/people/freedim

0 commit comments

Comments
 (0)