Skip to content

Commit de9b0a3

Browse files
committed
initialize
0 parents  commit de9b0a3

File tree

196 files changed

+15924
-0
lines changed

Some content is hidden

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

196 files changed

+15924
-0
lines changed

.gitignore

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
.DS_Store
2+
Thumbs.db
3+
db.json
4+
*.log
5+
node_modules/
6+
public/
7+
.deploy*/

_config.yml

+96
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
# Hexo Configuration
2+
## Docs: https://hexo.io/docs/configuration.html
3+
## Source: https://github.com/hexojs/hexo/
4+
5+
# Site
6+
title: kemchenj
7+
subtitle: Hackable life?
8+
description: 量产型 iOS 程序员一枚
9+
author: 四娘
10+
language: zh-CN
11+
timezone:
12+
13+
# URL
14+
## If your site is put in a subdirectory, set url as 'http://yoursite.com/child' and root as '/child/'
15+
url: https://kemchenj.github.io
16+
root: /
17+
permalink: :title/
18+
permalink_defaults:
19+
20+
# Directory
21+
source_dir: source
22+
public_dir: public
23+
tag_dir: tags
24+
archive_dir: archives
25+
category_dir: categories
26+
code_dir: downloads/code
27+
i18n_dir: :lang
28+
skip_render:
29+
30+
# Writing
31+
new_post_name: :title.md # File name of new posts
32+
default_layout: post
33+
titlecase: false # Transform title into titlecase
34+
external_link: true # Open external links in new tab
35+
filename_case: 0
36+
render_drafts: true
37+
post_asset_folder: false
38+
relative_link: false
39+
future: true
40+
highlight:
41+
enable: true
42+
line_number: false
43+
auto_detect: true
44+
tab_replace:
45+
46+
# Category & Tag
47+
default_category: uncategorized
48+
category_map:
49+
tag_map:
50+
51+
# Date / Time format
52+
## Hexo uses Moment.js to parse and display date
53+
## You can customize the date format as defined in
54+
## http://momentjs.com/docs/#/displaying/format/
55+
date_format: YYYY-MM-DD
56+
time_format: HH:mm:ss
57+
58+
# Pagination
59+
## Set per_page to 0 to disable pagination
60+
per_page: 10
61+
pagination_dir: page
62+
63+
# Extensions
64+
## Plugins: https://hexo.io/plugins/
65+
## Themes: https://hexo.io/themes/
66+
theme: next
67+
68+
# Deployment
69+
## Docs: https://hexo.io/docs/deployment.html
70+
deploy:
71+
type: git
72+
repo:
73+
github: https://github.com/kemchenj/kemchenj.github.io.git
74+
branch: master
75+
76+
# Search
77+
## Search Content
78+
search:
79+
path: search.xml
80+
field: post
81+
format: html
82+
limit: 10000
83+
84+
sitemap:
85+
path: sitemap.xml
86+
87+
index_generator:
88+
per_page: 10
89+
90+
archive_generator:
91+
per_page: 30
92+
yearly: true
93+
monthly: true
94+
95+
tag_generator:
96+
per_page: 10

googleaca2a971997c102c.html

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
google-site-verification: googleaca2a971997c102c.html

gulpfile.js

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
var gulp = require('gulp');
2+
3+
gulp.task('minify-js', function (cb) {
4+
var uglify = require('uglify-es');
5+
var composer = require('gulp-uglify/composer');
6+
var pump = require('pump');
7+
var minify = composer(uglify, console);
8+
pump([
9+
gulp.src('./public/**/*.js'),
10+
minify({}),
11+
gulp.dest('./public')
12+
],
13+
cb
14+
);
15+
});
16+
17+
// 压缩 public 目录 css
18+
gulp.task('minify-css', function() {
19+
var minifycss = require('gulp-clean-css');
20+
return gulp.src('./public/**/*.css')
21+
.pipe(minifycss())
22+
.pipe(gulp.dest('./public'));
23+
});
24+
25+
// 压缩 public 目录 html
26+
gulp.task('minify-html', function() {
27+
var htmlmin = require('gulp-htmlmin');
28+
var htmlclean = require('gulp-htmlclean');
29+
return gulp.src('./public/**/*.html')
30+
.pipe(htmlclean())
31+
.pipe(htmlmin({
32+
removeComments: true,
33+
minifyJS: true,
34+
minifyCSS: true,
35+
minifyURLs: true,
36+
}))
37+
.pipe(gulp.dest('./public'))
38+
});
39+
40+
// 执行 gulp 命令时执行的任务
41+
gulp.task('default', gulp.parallel(
42+
'minify-html','minify-css','minify-js'
43+
));

package.json

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
"name": "hexo-site",
3+
"version": "0.0.0",
4+
"private": true,
5+
"hexo": {
6+
"version": "3.9.0"
7+
},
8+
"dependencies": {
9+
"gulp": "^4.0.0",
10+
"gulp-clean-css": "^4.0.0",
11+
"gulp-htmlclean": "^2.7.22",
12+
"gulp-htmlmin": "^5.0.0",
13+
"gulp-uglify": "^3.0.0",
14+
"hexo": "^3.2.0",
15+
"hexo-deployer-git": "^1.0.0",
16+
"hexo-generator-archive": "^0.1.4",
17+
"hexo-generator-category": "^0.1.3",
18+
"hexo-generator-feed": "^1.2.2",
19+
"hexo-generator-index": "^0.2.0",
20+
"hexo-generator-search": "^2.4.0",
21+
"hexo-generator-tag": "^0.2.0",
22+
"hexo-renderer-ejs": "^0.3.0",
23+
"hexo-renderer-marked": "^1.0.0",
24+
"hexo-renderer-stylus": "^0.3.1",
25+
"hexo-server": "^0.3.0",
26+
"uglify-es": "^3.3.9"
27+
},
28+
"scripts": {
29+
"minify": "gulp",
30+
"deploy": "hexo clean && hexo g && gulp && cp googleaca2a971997c102c.html public && hexo d"
31+
}
32+
}

scaffolds/draft.md

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
title: {{ title }}
3+
tags:
4+
---

scaffolds/page.md

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
title: {{ title }}
3+
date: {{ date }}
4+
---

scaffolds/post.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
title: {{ title }}
3+
date: {{ date }}
4+
tags:
5+
---

source/.MWebMetaData/setting.json

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"name" : "source",
3+
"fileExtension" : ".md",
4+
"autoUploadInsertedImage" : false,
5+
"folderType" : 10,
6+
"mediaFloder" : "\/images",
7+
"orderBy" : 0,
8+
"newlinesToBR" : 0
9+
}

0 commit comments

Comments
 (0)