Skip to content

Commit

Permalink
update hexo and use Hexo Configuration style
Browse files Browse the repository at this point in the history
  • Loading branch information
ShuttleSpace committed Feb 16, 2024
1 parent ef23673 commit 5b56819
Show file tree
Hide file tree
Showing 25 changed files with 35,487 additions and 7,301 deletions.
1,005 changes: 1,005 additions & 0 deletions _config.___next.old.yml

Large diffs are not rendered by default.

899 changes: 411 additions & 488 deletions _config.next.yml

Large diffs are not rendered by default.

150 changes: 139 additions & 11 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
title: HumphreyIO
subtitle: 云青青兮欲雨, 水澹澹兮生烟
description: donot dedicate your life to ignorance,mediocrity,vulgarity.
keywords: Android,Java,Kotlin,JS,Rust,Electron
keywords: Android,Java,Kotlin,JS,Rust,Electron,Golang,Flutter,Dart,TS,kubernetes,k8s
author: HumphreyDan
language: zh-Hans
# language: zh-Hans
timezone: 'Asia/Shanghai'

# URL
Expand Down Expand Up @@ -52,7 +52,7 @@ highlight:
wrap: true
hljs: false
prismjs:
enable: false
enable: true
preprocess: true
line_number: true
tab_replace: ''
Expand Down Expand Up @@ -91,16 +91,12 @@ pagination_dir: page

# Include / Exclude file(s)
## include:/exclude: options only apply to the 'source/' folder
include:
exclude:
ignore:
# include:
# exclude:
# ignore:

# Extensions
## Plugins: https://hexo.io/plugins/
## Themes: https://hexo.io/themes/
theme: next
theme_config:
colorscheme: light
# Deployment
## Docs: https://hexo.io/docs/one-command-deployment
deploy:
Expand All @@ -113,4 +109,136 @@ search:
path: search.xml
field: post
content: true
format: html
format: html

## Themes: https://hexo.io/themes/
theme: next
theme_config:
minify: false
custom_file_path:
head: source/_data/head.njk
#header: source/_data/header.njk
#sidebar: source/_data/sidebar.njk
#postMeta: source/_data/post-meta.njk
#postBodyStart: source/_data/post-body-start.njk
postBodyEnd: source/_data/post-body-end.njk
footer: source/_data/footer.njk
bodyEnd: source/_data/body-end.njk
#variable: source/_data/variables.styl
#mixin: source/_data/mixins.styl
style: source/_data/styles.styl
# Schemes
scheme: Mist
# Dark Mode
darkmode: auto
colorscheme: light
favicon:
small: static/images/favicon-16x16-next.png
medium: static/images/favicon-32x32-next.png
apple_touch_icon: static/images/apple-touch-icon-next.png
safari_pinned_tab: static/images/logo.svg
#android_manifest: /manifest.json
open_graph:
enable: false
menu:
home: / || fa fa-home
tags: /tags/ || fa fa-tags
categories: /categories/ || fa fa-th
archives: /archives/ || fa fa-archive
about: /about/ || fa fa-user
# schedule: /schedule/ || fa fa-calendar
# sitemap: /sitemap.xml || fa fa-sitemap
commonweal: /404/ || fa fa-heartbeat
sidebar:
position: right
avatar:
url: http://picbed.dang8080.cn/avatar.jpeg
rounded: true
social:
GitHub: https://github.com/ShuttleSpace || fab fa-github
E-Mail: mailto:dang8080@qq.com || fa fa-envelope
footer:
since: 2018
copyright: HumphreyIO
powered: false
symbols_count_time:
item_text_post: true
# 平均单词长度(单词的计数)。默认值:4。CN≈2 EN≈5 俄文≈6
awl: 2
# 每分钟的单词。默认值:275。缓慢≈200 正常≈275 快≈350
wpm: 275
tag_icon: true
reward:
wechatpay: static/images/site/wechatpay.png
alipay: static/images/site/alipay.png
related_posts:
enable: true
title: 要不看点别的吧?💗 # Custom header, leave empty to use the default one
display_in_home: false
preconnect: true
codeblock:
copy_button:
enable: true
# Show text copy result.
show_result: true
# Available values: default | flat | mac
style: flat
# Fold code block
fold:
enable: false
height: 500
back2top:
scrollpercent: true
reading_progress:
enable: true
position: bottom
bookmark:
enable: true
github_banner:
enable: true
permalink: https://github.com/ShuttleSpace
title: Follow me on GitHub
note:
style: modern
icons: true
mermaid:
enable: true
fancybox: true
lazyload: true
pangu: true
# Valine
# For more information: https://valine.js.org, https://github.com/xCss/Valine
valine:
enable: true
appid: WS6xwQjL3YsDPCdcRTqtpdhg-gzGzoHsz # Your leancloud application appid
appkey: NgSfNQLxbzWKBuQROhn56aP5 # Your leancloud application appkey
notify: true # Mail notifier
verify: true # Verification code
placeholder: Just go go go!!! # Comment box placeholder
avatar: mm # Gravatar style
guest_info: nick,mail,link # Custom comment header
pageSize: 10 # Pagination size
language: zh-cn # Language, available values: en, zh-cn
visitor: true # Article reading statistic
comment_count: true # If false, comment count will only be displayed in post page, not in home page
recordIP: false # Whether to record the commenter IP
serverURLs: # When the custom domain name is enabled, fill it in here (it will be detected automatically by default, no need to fill in)
#post_meta_order: 0
# Utterances
# For more information: https://utteranc.es
utterances:
enable: false
repo: ShuttleSpace/ShuttleSpace.github.io # Github repository owner and name
# Available values: pathname | url | title | og:title
issue_term: title
# Available values: github-light | github-dark | preferred-color-scheme | github-dark-orange | icy-dark | dark-blue | photon-dark | boxy-light
theme: preferred-color-scheme
leancloud_visitors:
enable: false
app_id: WS6xwQjL3YsDPCdcRTqtpdhg-gzGzoHsz # <your app id>
app_key: NgSfNQLxbzWKBuQROhn56aP5 # <your app key>
server_url: https://ws6xwqjl.lc-cn-n1-shared.com # <your server url>
local_search:
enable: true
vendors:
plugins: jsdelivr
4 changes: 2 additions & 2 deletions gulpfile.mjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import gulp from "gulp";
import minifycss from "gulp-minify-css";
import cleancss from "gulp-clean-css";
import uglify from "gulp-uglify";
import htmlmin from "gulp-htmlmin";
import htmlclean from "gulp-htmlclean";
Expand All @@ -10,7 +10,7 @@ import babel from "gulp-babel";
gulp.task("minify-css", function (done) {
return gulp
.src("./public/**/*.css")
.pipe(minifycss())
.pipe(cleancss())
.on("error", (e) => done(e))
.pipe(gulp.dest("./public"));
});
Expand Down
Loading

0 comments on commit 5b56819

Please sign in to comment.