Skip to content

Commit fb30f35

Browse files
Add files via upload
1 parent 8900580 commit fb30f35

File tree

12 files changed

+1097
-0
lines changed

12 files changed

+1097
-0
lines changed

COPYING

Lines changed: 674 additions & 0 deletions
Large diffs are not rendered by default.

Gemfile

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# source "https://rubygems.org"
2+
3+
# Hello! This is where you manage which Jekyll version is used to run.
4+
# When you want to use a different version, change it below, save the
5+
# file and run `bundle install`. Run Jekyll with `bundle exec`, like so:
6+
#
7+
# bundle exec jekyll serve
8+
#
9+
# This will help ensure the proper Jekyll version is running.
10+
# Happy Jekylling!
11+
# gem "jekyll", "~> 3.8.5"
12+
13+
# This is the default theme for new Jekyll sites. You may change this to anything you like.
14+
# gem "minima", "~> 2.0"
15+
16+
# If you want to use GitHub Pages, remove the "gem "jekyll"" above and
17+
# uncomment the line below. To upgrade, run `bundle update github-pages`.
18+
gem "github-pages", group: :jekyll_plugins
19+
20+
# If you have any plugins, put them here!
21+
# group :jekyll_plugins do
22+
# gem "jekyll-feed", "~> 0.6"
23+
# end
24+
25+
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
26+
# gem "tzinfo-data", platforms: [:mingw, :mswin, :x64_mingw, :jruby]
27+
28+
# source 'https://gems.ruby-china.com'
29+
source 'https://rubygems.org'
30+
# Performance-booster for watching directories on Windows
31+
gem 'wdm', '>=0.1.0' if Gem.win_platform?

README-EN.md

Lines changed: 117 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,117 @@
1+
<div align="center">
2+
<div align="right">
3+
<a href="README.md">简体中文</a> | English
4+
</div>
5+
<h1>donglinanshan.github.io</h1>
6+
<p>A responsive personal blog website based on jekyll.</p>
7+
8+
[![license](https://img.shields.io/github/license/donglinanshan/donglinanshan.github.io)](https://github.com/donglinanshan/donglinanshan.github.io/blob/master/COPYING)
9+
[![Gitter](https://img.shields.io/gitter/room/donglinanshan/donglinanshan.github.i0)](https://gitter.im/donglinanshan-github-io/community?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)
10+
[![Website](https://img.shields.io/website?down_color=lightgrey%09&down_message=offline&up_color=%09aqua&up_message=online&url=https%3A%2F%2Fdonglinanshan.github.io)](https://donglinanshan.github.io)
11+
[![GitHub deployments](https://img.shields.io/github/deployments/donglinanshan/donglinanshan.github.io/github-pages)](https://github.com/donglinanshan/donglinanshan.github.io/deployments)
12+
![GitHub top language](https://img.shields.io/github/languages/top/donglinanshan/donglinanshan.github.io)
13+
14+
![GitHub stars](https://img.shields.io/github/stars/donglinanshan/donglinanshan.github.io?style=flat)
15+
![GitHub forks](https://img.shields.io/github/forks/donglinanshan/donglinanshan.github.io?style=flat)
16+
![GitHub followers](https://img.shields.io/github/followers/donglinanshan?style=flat)
17+
[![Github issues](https://img.shields.io/badge/issues-welcome-success)](https://github.com/donglinanshan/donglinanshan.github.io/issues)
18+
[![Github pull request](https://img.shields.io/badge/pull%20request-welcome-success)](https://github.com/donglinanshan/donglinanshan.github.io/pulls)
19+
20+
[![GitHub last commit](https://img.shields.io/github/last-commit/donglinanshan/donglinanshan.github.io)](https://github.com/donglinanshan/donglinanshan.github.io/commit/master)
21+
[![GitHub commit activity](https://img.shields.io/github/commit-activity/m/donglinanshan/donglinanshan.github.io)](https://github.com/donglinanshan/donglinanshan.github.io/graphs/commit-activity)
22+
![GitHub repo size](https://img.shields.io/github/repo-size/donglinanshan/donglinanshan.github.io)
23+
</div>
24+
25+
## Features
26+
27+
- Responsive for mobile phone, tablet, desktop | [Preview](https://donglinanshan.github.io)
28+
- Show your GitHub repository fantastically | [Preview](https://donglinanshan.github.io/projects)
29+
- Archive your articles with categories and tags | [Preview](https://donglinanshan.github.io/categories)
30+
- Support search articles with key words | [Preview](https://donglinanshan.github.io)
31+
- Customized “About” page | [Preview](https://donglinanshan.github.io/about)
32+
33+
## Usage
34+
35+
Detailed tutorial:[Build Github Pages blog website](https://donglinanshan.github.io/2018/04/01/github-pages-blog)
36+
37+
jekyll guide:<https://www.jekyll.com.cn/>
38+
39+
## Configuration
40+
41+
The configuration file `_config.yml` locates in the root directory, looking for more details about the parameters of this file, please see the official documentation: <https://www.jekyll.com.cn/docs/configuration/>
42+
43+
Example config of my website:
44+
```yml
45+
# Welcome to Jekyll!
46+
#
47+
# This config file is meant for settings that affect your whole blog, values
48+
# which you are expected to set up once and rarely edit after that. If you find
49+
# yourself editing this file very often, consider using Jekyll's data files
50+
# feature for the data you need to update frequently.
51+
#
52+
# For technical reasons, this file is *NOT* reloaded automatically when you use
53+
# 'bundle exec jekyll serve'. If you change this file, please restart the server process.
54+
55+
# Global variable, can use it in HTML file,
56+
# for example: <h1>{{ site.title }}</h1>
57+
title: ***的博客 # title for your website
58+
description: > # description for your website, useful for search engine exhibition.
59+
基于 jekyll 的 Github Pages 个人博客网站,技术的学习、总结、分享与提升
60+
url: "https://donglinanshan.github.io" # address of your website.
61+
github_repo: donglinanshan/donglinanshan.github.io
62+
github_profile: "https://github.com/donglinanshan" # your GitHub home page.
63+
user: "***" # name in the sidebar
64+
user_email: "liang_zhi_bo@foxmail.com" # contact email in the sidebar
65+
paginate: 5 # how many articles will show in your website home page.
66+
67+
# configuration related to jekyll
68+
markdown: kramdown
69+
repository: donglinanshan/donglinanshan.github.io
70+
plugins:
71+
- jekyll-feed
72+
- jekyll-paginate
73+
- jekyll-seo-tag
74+
- jekyll-sitemap
75+
exclude:
76+
- Gemfile
77+
- Gemfile.lock
78+
- vendor
79+
- README.md
80+
- COPYING
81+
sass:
82+
style: compressed
83+
future: true
84+
permalink: /:year/:month/:day/:title
85+
```
86+
87+
## Development
88+
89+
Commit and push your code to the remote repo, you may wait for a long time to see the change of your blog website, so recommend build develop environment in local, convenient for debugging.
90+
91+
Detialed tutorial: [Install jekyll](https://donglinanshan.github.io/2018/04/01/github-pages-blog#%E5%AE%89%E8%A3%85jekyll-)
92+
93+
run code bellow in shell after configuring well:
94+
```cmd
95+
bundle exec jekyll s
96+
```
97+
98+
Then shell will print a message about open `http://127.0.0.1:4000` in browser to preview the website. Normally, what you see is the same as real GitHub Pages website, so, push your code to github after testing it well.
99+
100+
## Libraries
101+
102+
- [Materialize.css](http://materializecss.com/):Famous materialize css style library.
103+
- [GeoPattern](http://btmills.github.io/geopattern/):Generate intersting backgroud images.
104+
- [Animate.css](https://daneden.github.io/animate.css/):Library for animations.
105+
- [Morphtext](http://morphext.fyianlai.com/):Let your words moving!
106+
- [particles.js](https://marcbruederlin.github.io/particles.js/):Particle lines effect.
107+
108+
## Reference
109+
110+
- https://github.com/ShawnTeoh/matjek
111+
- https://github.com/knightyun/knightyun.github.io
112+
113+
## Thanks
114+
- https://github.com/knightyun/knightyun.github.io
115+
116+
## License
117+
[GPL v3](https://github.com/donglinanshan/donglinanshan.github.io/blob/master/COPYING)

README.md

Lines changed: 109 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,109 @@
1+
<div align="center">
2+
<div align="right">
3+
简体中文 | <a href="README-EN.md">English</a>
4+
</div>
5+
<h1>donglinanshan.github.io</h1>
6+
<p>基于 jekyll 的响应式 Github Pages 个人博客网站</p>
7+
8+
[![license](https://img.shields.io/github/license/donglinanshan/donglinanshan.github.io)](https://github.com/donglinanshan/donglinanshan.github.io/blob/master/COPYING)
9+
[![Gitter](https://img.shields.io/gitter/room/donglinanshan/donglinanshan.github.i0)](https://gitter.im/donglinanshan-github-io/community?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)
10+
[![Website](https://img.shields.io/website?down_color=lightgrey%09&down_message=offline&up_color=%09aqua&up_message=online&url=https%3A%2F%2Fdonglinanshan.github.io)](https://donglinanshan.github.io)
11+
[![GitHub deployments](https://img.shields.io/github/deployments/donglinanshan/donglinanshan.github.io/github-pages)](https://github.com/donglinanshan/donglinanshan.io/deployments)
12+
![GitHub top language](https://img.shields.io/github/languages/top/donglinanshan/donglinanshan.github.io)
13+
14+
![GitHub stars](https://img.shields.io/github/stars/donglinanshan/donglinanshan.github.io?style=flat)
15+
![GitHub forks](https://img.shields.io/github/forks/donglinanshan/donglinanshan.github.io?style=flat)
16+
![GitHub followers](https://img.shields.io/github/followers/donglinanshan?style=flat)
17+
[![Github issues](https://img.shields.io/badge/issues-welcome-success)](https://github.com/donglinanshan/donglinanshan.github.io/issues)
18+
[![Github pull request](https://img.shields.io/badge/pull%20request-welcome-success)](https://github.com/donglinanshan/donglinanshan.github.io/pulls)
19+
20+
[![GitHub last commit](https://img.shields.io/github/last-commit/donglinanshan/donglinanshan.github.io)](https://github.com/donglinanshan/donglinanshan.github.io/commit/master)
21+
[![GitHub commit activity](https://img.shields.io/github/commit-activity/m/donglinanshan/donglinanshan.github.io)](https://github.com/donglinanshan/donglinanshan.github.io/graphs/commit-activity)
22+
![GitHub repo size](https://img.shields.io/github/repo-size/donglinanshan/donglinanshan.github.io)
23+
</div>
24+
25+
## 特性
26+
27+
- 适配移动端与桌面端展示效果 | [预览](https://donglinanshan.github.io)
28+
- 个性化自动展示 GitHub 项目 | [预览](https://donglinanshan.github.io/projects)
29+
- 文章按类别与标签归档展示 | [预览](https://donglinanshan.github.io/categories)
30+
- 支持搜索框,按关键词搜索全站文章 | [预览](https://donglinanshan.github.io)
31+
- 生动的 “关于” 页面 | [预览](https://donglinanshan.github.io/about)
32+
33+
## 使用
34+
35+
详细搭建教程:[搭建 Github Pages 个人博客网站](https://donglinanshan.github.io/2018/04/01/github-pages-blog)
36+
37+
jekyll 使用教程:<https://www.jekyll.com.cn/>
38+
39+
## 配置
40+
41+
配置文件是位于主目录的 `_config.yml`,关于配置的完整参数介绍和默认值等内容,请查阅官网文档:<https://www.jekyll.com.cn/docs/configuration/>
42+
43+
以下是我的网站配置示例,以供参考:
44+
```yml
45+
# 以下为自定义的全局变量,可以在 HTML 文件中引用,
46+
# 比如代码:<h1>{{ site.title }}</h1>
47+
# 将会展示为设定的值,也可以自行添加其他自定义全局变量。
48+
title: ***的博客 # 网站的标题
49+
description: > # 网站的描述,可能会出现在搜索引擎展示结果中
50+
基于 jekyll 的 Github Pages 个人博客网站,技术的学习、总结、分享与提升
51+
url: "https://donglinanshan.github.io" # 网站地址
52+
github_repo: donglinanshan/donglinanshan.github.io
53+
github_profile: "https://github.com/donglinanshan" # GitHub 个人主页
54+
user: "***" # 用于侧栏展示的名字
55+
user_email: "liang_zhi_bo@foxmail.com" # 侧栏展示的联系方式
56+
paginate: 5 # 主页展示的博客文章数量
57+
58+
# jekyll 相关配置
59+
markdown: kramdown
60+
plugins:
61+
- jekyll-feed
62+
- jekyll-paginate
63+
- jekyll-seo-tag
64+
- jekyll-sitemap
65+
exclude:
66+
- Gemfile
67+
- Gemfile.lock
68+
- README.md
69+
- COPYING
70+
- vendor
71+
sass:
72+
style: compressed
73+
future: true
74+
permalink: /:year/:month/:day/:title
75+
theme: jekyll-theme-slate
76+
```
77+
78+
## 配置开发环境
79+
80+
提交推送代码后,GitHub Pages页面(即博客网站主页)更新较慢,所以推荐搭建本地开发环境,以便调试。
81+
82+
详细教程请见:[安装 jekyll](https://donglinanshan.github.io/2018/04/01/github-pages-blog#%E5%AE%89%E8%A3%85jekyll-)
83+
84+
配置好依赖后在项目主目录运行:
85+
```cmd
86+
bundle exec jekyll s
87+
```
88+
89+
然后会提示浏览器打开 `http://127.0.0.1:4000` 预览网站,正常情况预览效果与 GitHub Pages 展示的一样,这样就可以在本地开发调试好了再推送到 GitHub。
90+
91+
## 用到的第三方库
92+
93+
- [Materialize.css](http://materializecss.com/):一个不错的样式组件库
94+
- [GeoPattern](http://btmills.github.io/geopattern/):格式化生成有趣的背景图
95+
- [Animate.css](https://daneden.github.io/animate.css/):动画样式库
96+
- [Morphtext](http://morphext.fyianlai.com/):让文字动起来
97+
- [particles.js](https://marcbruederlin.github.io/particles.js/):粒子连接效果
98+
99+
## 参考
100+
101+
- https://github.com/ShawnTeoh/matjek
102+
- https://github.com/knightyun/knightyun.github.io
103+
104+
## 鸣谢
105+
- https://github.com/knightyun/knightyun.github.io
106+
107+
## License
108+
109+
[GPL v3](https://github.com/donglinanshan/donglinanshan.github.io/blob/master/COPYING)

_config.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# Welcome to Jekyll!
2+
#
3+
# This config file is meant for settings that affect your whole blog, values
4+
# which you are expected to set up once and rarely edit after that. If you find
5+
# yourself editing this file very often, consider using Jekyll's data files
6+
# feature for the data you need to update frequently.
7+
#
8+
# For technical reasons, this file is *NOT* reloaded automatically when you use
9+
# 'bundle exec jekyll serve'. If you change this file, please restart the server process.
10+
11+
# 以下为自定义的全局变量,可以在 HTML 文件中引用,
12+
# 比如代码:<h1>{{ site.title }}</h1>
13+
# 将会展示为设定的值,也可以自行添加其他自定义全局变量。
14+
title: 东篱南山 # 网站的标题
15+
description: > # 网站的描述,可能会出现在搜索引擎展示结果中
16+
基于 jekyll 的 Github Pages 个人博客网站,技术的学习、总结、分享与提升
17+
url: "https://donglinanshan.github.io" # 网站地址
18+
github_repo: donglinanshan/kdonglinanshan.github.io
19+
github_profile: "https://github.com/donglinanshan" # GitHub 个人主页
20+
user: "东篱南山" # 用于侧栏展示的名字
21+
user_email: "liang_zhi_bo@foxmail.com" # 侧栏展示的联系方式
22+
paginate: 5 # 主页展示的博客文章数量
23+
24+
# jekyll 相关配置
25+
markdown: kramdown
26+
plugins:
27+
- jekyll-feed
28+
- jekyll-paginate
29+
- jekyll-seo-tag
30+
- jekyll-sitemap
31+
exclude:
32+
- Gemfile
33+
- Gemfile.lock
34+
- README.md
35+
- COPYING
36+
- vendor
37+
sass:
38+
style: compressed
39+
future: true
40+
permalink: /:year/:month/:day/:title
41+
theme: jekyll-theme-slate

about.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
layout: page
3+
title: "About Me"
4+
css: ["about.css", "animate.css", "morphext.css"]
5+
js: ["morphext.min.js", "about.js"]
6+
---
7+
{% include about.html %}

categories.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
layout: page
3+
title: "Categories"
4+
css: ["categories.css"]
5+
---
6+
{% include categories.html %}

contact.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
layout: page
3+
title: "Contact me"
4+
css: ["contact.css"]
5+
---
6+
{% include contact.html %}

feed.xml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
---
2+
---
3+
<?xml version="1.0" encoding="UTF-8" ?>
4+
<rss version="2.0">
5+
6+
<channel>
7+
<title>{{ site.title }}</title>
8+
<link>{{ site.url }}</link>
9+
<description>{{ site.description }}</description>
10+
<lastBuildDate>{{ site.time | date_to_rfc822 }}</lastBuildDate>
11+
{% for post in site.posts %}
12+
<item>
13+
<title>{{ post.title | escape }}</title>
14+
<link>
15+
{{ post.url | prepend: site.url }}
16+
</link>
17+
<description>
18+
{{ post.content | escape }}
19+
</description>
20+
<pubDate>{{ post.date | date_to_rfc822 }}</pubDate>
21+
<guid>
22+
{{ post.url | prepend: site.url }}
23+
</guid>
24+
</item>
25+
{% endfor %}
26+
</channel>
27+
</rss>

0 commit comments

Comments
 (0)