Skip to content

Commit d435cd5

Browse files
committed
Create this blog
0 parents  commit d435cd5

Some content is hidden

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

70 files changed

+23319
-0
lines changed

Diff for: 404.html

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
layout: default
3+
description: "你来到了没有知识的荒原 🙊"
4+
header-img: "img/404-bg.jpg"
5+
permalink: /404.html
6+
---
7+
8+
9+
<!-- Page Header -->
10+
<header class="intro-header" style="background-image: url('{{ site.baseurl }}/{% if page.header-img %}{{ page.header-img }}{% else %}{{ site.header-img }}{% endif %}')">
11+
<div class="container">
12+
<div class="row">
13+
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
14+
<div class="site-heading" id="tag-heading">
15+
<h1>404</h1>
16+
<span class="subheading">{{ page.description }}</span>
17+
</div>
18+
</div>
19+
</div>
20+
</div>
21+
</header>
22+
23+
<script>
24+
document.body.classList.add('page-fullscreen');
25+
</script>

Diff for: Gruntfile.js

+73
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
module.exports = function(grunt) {
2+
3+
// Project configuration.
4+
grunt.initConfig({
5+
pkg: grunt.file.readJSON('package.json'),
6+
uglify: {
7+
main: {
8+
src: 'js/<%= pkg.name %>.js',
9+
dest: 'js/<%= pkg.name %>.min.js'
10+
}
11+
},
12+
less: {
13+
expanded: {
14+
options: {
15+
paths: ["css"]
16+
},
17+
files: {
18+
"css/<%= pkg.name %>.css": "less/<%= pkg.name %>.less"
19+
}
20+
},
21+
minified: {
22+
options: {
23+
paths: ["css"],
24+
cleancss: true
25+
},
26+
files: {
27+
"css/<%= pkg.name %>.min.css": "less/<%= pkg.name %>.less"
28+
}
29+
}
30+
},
31+
banner: '/*!\n' +
32+
' * <%= pkg.title %> v<%= pkg.version %> (<%= pkg.homepage %>)\n' +
33+
' * Copyright <%= grunt.template.today("yyyy") %> <%= pkg.author %>\n' +
34+
' */\n',
35+
usebanner: {
36+
dist: {
37+
options: {
38+
position: 'top',
39+
banner: '<%= banner %>'
40+
},
41+
files: {
42+
src: ['css/<%= pkg.name %>.css', 'css/<%= pkg.name %>.min.css', 'js/<%= pkg.name %>.min.js']
43+
}
44+
}
45+
},
46+
watch: {
47+
scripts: {
48+
files: ['js/<%= pkg.name %>.js'],
49+
tasks: ['uglify'],
50+
options: {
51+
spawn: false,
52+
},
53+
},
54+
less: {
55+
files: ['less/*.less'],
56+
tasks: ['less'],
57+
options: {
58+
spawn: false,
59+
}
60+
},
61+
},
62+
});
63+
64+
// Load the plugins.
65+
grunt.loadNpmTasks('grunt-contrib-uglify');
66+
grunt.loadNpmTasks('grunt-contrib-less');
67+
grunt.loadNpmTasks('grunt-banner');
68+
grunt.loadNpmTasks('grunt-contrib-watch');
69+
70+
// Default task(s).
71+
grunt.registerTask('default', ['uglify', 'less', 'usebanner']);
72+
73+
};

Diff for: LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2017 BY
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, 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,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

Diff for: README.md

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Wells's Blog
2+
3+
我的个人博客。
4+
5+
## 致谢
6+
7+
1. 这个模板是从这里 [Hux](https://github.com/Huxpro/huxpro.github.io) fork 的, 感谢这个作者。
8+
2. 感谢 Jekyll、Github Pages 和 Bootstrap!
9+
10+
## License
11+
12+
遵循 MIT 许可证。有关详细,请参阅 [LICENSE](https://github.com/qiubaiying/qiubaiying.github.io/blob/master/LICENSE)
13+

Diff for: _config.yml

+114
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,114 @@
1+
# Site settings
2+
title: Wells's Blog
3+
SEOTitle: Wells的博客 | Wells's Blog
4+
header-img: img/post-bg-coffee.jpeg
5+
6+
description: "Every failure is leading towards success."
7+
keyword: "Wells's Blog, Wells的博客, supengfei, 前端, Vue, React"
8+
url: "http://wellssu0.github.io" # your host, for absolute URL
9+
baseurl: "" # for example, '/blog' if your blog hosted on 'host/blog'
10+
github_repo: "https://github.com/wellssu0/wellssu0.github.io.git" # you code repository
11+
12+
# Sidebar settings
13+
sidebar: true # whether or not using Sidebar.
14+
sidebar-about-description: "Goals determine what you going to be!"
15+
sidebar-avatar: /img/avatar-pho.jpg # use absolute URL, seeing it's used in both `/` and `/about/`
16+
17+
18+
19+
# SNS settings
20+
RSS: false
21+
# weibo_username:
22+
zhihu_username:
23+
github_username: wellssu0
24+
facebook_username:
25+
jianshu_username:
26+
#twitter_username:
27+
28+
29+
30+
31+
# Build settings
32+
# from 2016, 'pygments' is unsupported on GitHub Pages. Use 'rouge' for highlighting instead.
33+
permalink: pretty
34+
paginate: 10
35+
exclude: ["less","node_modules","Gruntfile.js","package.json","README.md"]
36+
anchorjs: true # if you want to customize anchor. check out line:181 of `post.html`
37+
38+
39+
40+
# Gems
41+
# from PR#40, to support local preview for Jekyll 3.0
42+
gems: [jekyll-paginate]
43+
44+
45+
46+
47+
# Markdown settings
48+
# replace redcarpet to kramdown,
49+
# although redcarpet can auto highlight code, the lack of header-id make the catalog impossible, so I switch to kramdown
50+
# document: http://jekyllrb.com/docs/configuration/#kramdown
51+
markdown: kramdown
52+
highlighter: rouge
53+
kramdown:
54+
input: GFM # use Github Flavored Markdown !important
55+
56+
57+
58+
# 评论系统
59+
# Disqus(https://disqus.com/)
60+
# disqus_username: wellssu
61+
62+
# Gitalk
63+
gitalk:
64+
enable: true #是否开启Gitalk评论
65+
clientID: d192a4dbdde1d0aaf5ee #生成的clientID
66+
clientSecret: c021f1378ec911ec64cc7ac990d209ce52de1756 #生成的clientSecret
67+
repo: wellssu0.github.io #仓库名称
68+
owner: wellssu0 #github用户名
69+
admin: wellssu0
70+
distractionFreeMode: true #是否启用类似FB的阴影遮罩
71+
72+
73+
# 统计
74+
75+
# Analytics settings
76+
# Baidu Analytics
77+
ba_track_id: df2994c89544d8a06cdb0b268d322bfe
78+
79+
# Google Analytics
80+
ga_track_id: 'UA-146814224-1' # Format: UA-xxxxxx-xx
81+
ga_domain: auto # 默认的是 auto, 这里我是自定义了的域名,你如果没有自己的域名,需要改成auto
82+
83+
84+
85+
86+
87+
# Featured Tags
88+
featured-tags: true # 是否使用首页标签
89+
featured-condition-size: 0 # 相同标签数量大于这个数,才会出现在首页
90+
91+
92+
93+
# Progressive Web Apps
94+
chrome-tab-theme-color: "#000000"
95+
service-worker: true
96+
97+
98+
99+
# Friends
100+
friends: [
101+
# {
102+
# title: "",
103+
# href: ""
104+
# },{
105+
# title: "",
106+
# href: ""
107+
# },{
108+
# title: "",
109+
# href: ""
110+
# },{
111+
# title: "",
112+
# href: ""
113+
# }
114+
]

0 commit comments

Comments
 (0)