Skip to content

Commit 9b82078

Browse files
authored
1.5.0
Merge pull request #402 from viosey/canary
2 parents f48e873 + 092b7a4 commit 9b82078

File tree

102 files changed

+979
-3042
lines changed

Some content is hidden

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

102 files changed

+979
-3042
lines changed

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,6 @@ _config.yml
66

77
node_modules
88

9-
.idea
9+
.idea
10+
11+
.directory

.travis.yml

Lines changed: 89 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,90 @@
11
language: node_js
2-
node_js:
3-
- "4"
2+
dist: trusty
3+
node_js:
4+
- "7"
5+
install:
6+
- npm install hexo-cli -g
7+
before_script:
8+
- git clone https://github.com/neko-dev/hexo-theme-test-ci.git --depth=5
9+
- cd hexo-theme-test-ci
10+
- rm -rf .git
11+
- cd _hexo
12+
- npm install
13+
- git clone https://github.com/viosey/hexo-theme-material.git themes/material
14+
- cd themes/material
15+
- git checkout -t origin/canary
16+
- git pull
17+
- rm -rf .git
18+
- cd ..
19+
- cd ..
20+
- cd ..
21+
- cp -i _config.theme.yml _hexo/themes/material/_config.yml
22+
- cd _hexo
23+
script:
24+
- hexo clean
25+
- hexo g
26+
- mkdir ./deploy-git
27+
- cd ./deploy-git
28+
- git init
29+
- git config --global push.default matching
30+
- git config --global user.email "${GitHubEmail}"
31+
- git config --global user.name "${GitHubUser}"
32+
- git remote add origin https://${GitHubKEY}@github.com/${GitHubRepo}.git
33+
- git pull origin ${DeployBranch}
34+
- rm -rf ./*
35+
- cp -rf ../public/* ./
36+
- git add --all .
37+
- git commit -m "Travis Auto Tester for Material Theme"
38+
- git push --quiet --force https://${GitHubKEY}@github.com/${GitHubRepo}.git
39+
- cd ..
40+
- cd ..
41+
- npm install selenium-webdriver
42+
- sed -i "s/{bs_user}/${BrowserstackUser}/g" test.js
43+
- sed -i "s/{bs_key}/${BrowserstackKey}/g" test.js
44+
- sed -i "s/{bs_project}/${BrowserstackProject}/g" test.js
45+
- sed -i "s/{bs_build_number}/${TRAVIS_BUILD_NUMBER}/g" test.js
46+
- sed -i "s/{bs_commit}/${TRAVIS_COMMIT}/g" test.js
47+
- mkdir -p ./_output/img/OSX_Safari_10.0
48+
- node test.js _config/OSX_Safari_10.0 OSX_Safari_10.0
49+
- mkdir -p ./_output/img/w10_chrome_60.0
50+
- node test.js _config/w10_chrome_60.0 w10_chrome_60.0
51+
- mkdir -p ./_output/img/w10_Edge_15
52+
- node test.js _config/w10_Edge_15 w10_Edge_15
53+
- mkdir -p ./_output/img/w10_Firefox_54.0
54+
- node test.js _config/w10_Firefox_54.0 w10_Firefox_54.0
55+
- mkdir -p ./_output/img/w10_IE_11.0
56+
- node test.js _config/w10_IE_11.0 w10_IE_11.0
57+
- mkdir -p ./_output/img/Android_SamsungGalaxyS5
58+
- node test.js _config/Android_SamsungGalaxyS5 Android_SamsungGalaxyS5
59+
- mkdir -p ./_output/img/iOS_iPhone6SPlus
60+
- node test.js _config/iOS_iPhone6SPlus iOS_iPhone6SPlus
61+
- cd ./_output
62+
- git init
63+
- git remote add origin https://${GitHubKEY}@github.com/${GitHubRepoBrowserstack}.git
64+
- cp base.md OSX_Safari_10.0.md
65+
- sed -i "s/{platfrom_browser_name}/OSX Safari 10.0/g" OSX_Safari_10.0.md
66+
- sed -i "s/{platfrom_browser}/OSX_Safari_10.0/g" OSX_Safari_10.0.md
67+
- cp base.md w10_chrome_60.0.md
68+
- sed -i "s/{platfrom_browser_name}/Windows10 Chrome 60.0/g" w10_chrome_60.0.md
69+
- sed -i "s/{platfrom_browser}/w10_chrome_60.0/g" w10_chrome_60.0.md
70+
- cp base.md w10_Edge_15.md
71+
- sed -i "s/{platfrom_browser_name}/Windows10 Edge 15/g" w10_Edge_15.md
72+
- sed -i "s/{platfrom_browser}/w10_Edge_15/g" w10_Edge_15.md
73+
- cp base.md w10_Firefox_54.0.md
74+
- sed -i "s/{platfrom_browser_name}/Windows10 Firefox 54/g" w10_Firefox_54.0.md
75+
- sed -i "s/{platfrom_browser}/w10_Firefox_54.0/g" w10_Firefox_54.0.md
76+
- cp base.md w10_IE_11.0.md
77+
- sed -i "s/{platfrom_browser_name}/Windows10 IE 11.0/g" w10_IE_11.0.md
78+
- sed -i "s/{platfrom_browser}/w10_IE_11.0/g" w10_IE_11.0.md
79+
- cp base.md Android_SamsungGalaxyS5.md
80+
- sed -i "s/{platfrom_browser_name}/Android Android Samsung Galaxy S5/g" Android_SamsungGalaxyS5.md
81+
- sed -i "s/{platfrom_browser}/Android_SamsungGalaxyS5/g" Android_SamsungGalaxyS5.md
82+
- cp base.md iOS_iPhone6SPlus.md
83+
- sed -i "s/{platfrom_browser_name}/iPhone 6S Plus/g" iOS_iPhone6SPlus.md
84+
- sed -i "s/{platfrom_browser}/iOS_iPhone6SPlus/g" iOS_iPhone6SPlus.md
85+
- rm base.md
86+
- git add --all .
87+
- git commit -m "Travis Auto Generate for Material Theme"
88+
- git push --quiet --force https://${GitHubKEY}@github.com/${GitHubRepoBrowserstack}.git
89+
notifications:
90+
webhooks: https://fathomless-fjord-24024.herokuapp.com/notify

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
## General 概括
2222

23-
[![Version](https://img.shields.io/badge/version-1.4.0-green.svg?style=flat-square)]()
23+
[![Version](https://img.shields.io/badge/version-1.5.0-green.svg?style=flat-square)]()
2424
[![Author](https://img.shields.io/badge/author-Viosey-blue.svg?style=flat-square)](https://viosey.com)
2525

2626
[![Hexo](https://img.shields.io/badge/hexo-3.0+-green.svg?style=flat-square)](https://hexo.io)

_config.template.yml

Lines changed: 86 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,9 @@ img:
8383
# Custom Fonts
8484
# family: the font-family which will be used in the theme
8585
# host: uri of fonts host.
86-
# Available value of "host": google | baomitu | ustc | custom
86+
# Available value of "host": google | baomitu | ustc | custom | catnet
87+
# When you configured 'use' as 'custom', you should fill in the value of 'custom_font_host', which should be a mirror of google fonts.
88+
# If you have setup your custom font-family, don't forget to add style tag with @font-face or link.tag with font css to /source/data/head.yml as custom code, to load custom font files.
8789
fonts:
8890
family: Roboto, "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", Arial, sans-serif
8991
use: google
@@ -97,6 +99,12 @@ card_elevation: 2
9799
# For example, if you set it as 2015, then footer will show '© 2015 - 2017'
98100
copyright_since:
99101

102+
# Footer Text
103+
# You can specify the text you want to show in footer, HTML tag is supported.
104+
# For example, you can setup ICP license number as:
105+
# '<a href="http://www.miitbeian.gov.cn" rel="nofollow">某ICP备xxxxxxxx号-x</a>'
106+
footer_text:
107+
100108
# Qrcode for redirect at other device
101109
# use: choose which method to generate the qrcode for each posts.
102110
# Available value of "use": plugin | online
@@ -106,6 +114,40 @@ qrcode:
106114
enable: false
107115
use: plugin
108116

117+
# Code highlight
118+
# Available value for `prettify` or `hanabi`: true | false
119+
# You can only enable one of them to avoid issues. Also you need to check highlight option in _config.yml. Make sure that default hexo built in highlight plugin is disabled.
120+
# highlight:
121+
# enable: false
122+
#
123+
# Prettify
124+
# theme value:
125+
# theme-name # /vendors/prettify/themes/[theme-name].css
126+
prettify:
127+
enable: false
128+
theme: "vibrant-ink" # default value: "vibrant-ink" # theme-name without '.css'
129+
130+
# Hanabi
131+
# hanabi © egoist, Released under the MIT License
132+
# https://github.com/egoist/hanabi
133+
#
134+
# line_number: [true/false] # Show line number for code block
135+
# includeDefaultColors: [true/false] # Use default hanabi colors
136+
# customColors: # This value accept a string or am array to setting for hanabi colors.
137+
# # If `includeDefaultColors` is true, this will append colors to the color pool
138+
# # If `includeDefaultColors` is false, this will instead default color pool
139+
hanabi:
140+
enable: false
141+
line_number: true
142+
includeDefaultColors: true
143+
customColors:
144+
145+
# Post License
146+
# You can specify the text you want to show in the end of your posts and pages, HTML tag is supported.
147+
# For example, you can setup a CC license as:
148+
# 'This blog is under a <a href="/creativecommons.html" target="_blank">CC BY-NC-SA 3.0 Unported License</a>'
149+
# You can also use Front-Matter `license` to override this setting.
150+
license:
109151

110152
# ---------------------------------------------------------------
111153
# Menu Settings
@@ -132,6 +174,7 @@ sns:
132174
zhihu:
133175
bilibili:
134176
telegram:
177+
v2ex:
135178

136179
# SNS Share Switch
137180
sns_share:
@@ -181,23 +224,24 @@ sidebar:
181224
# Integrated Services
182225
# ---------------------------------------------------------------
183226

184-
# MaterialCDN
185-
# When you set 'use' as true, the needed css, js, font file will have a new src.
186-
# The new src will have the base domain you configured in 'base'.
187-
materialcdn:
188-
use:
189-
base:
190-
191227
# Comment Systems
192228
# Available value of "use":
193-
# disqus | disqus_click | changyan | 163gentie
229+
# disqus | disqus_click | changyan | livere | gitment | valine
230+
# If you want to use gitment,you should get the client_id and client_secret form https://github.com/settings/applications/new
231+
# If you want to use valine,you should get the app_id and app_key form https://leancloud.cn ,more setting please see https://github.com/xCss/Valine
194232
comment:
195233
use:
196234
shortname: # duoshuo or disqus shortname
197235
changyan_appid:
198236
changyan_conf:
199237
changyan_thread_key_type: path
200-
gentie_productKey:
238+
livere_data_uid:
239+
gitment_repo: # git repo of the hexo
240+
gitment_owner: # git repo's owner
241+
gitment_client_id: # github app client id
242+
gitment_client_secret : # github app client secret
243+
valine_leancloud_appId: # leancloud application app id
244+
valine_leancloud_appKey: # leancloud application app key
201245

202246
# Search Systems
203247
# Available value:
@@ -210,8 +254,9 @@ search:
210254
# Available value:
211255
# baidu | google | cnzz
212256
analytics:
213-
use:
214-
site_id:
257+
google_site_id:
258+
baidu_site_id:
259+
cnzz_site_id:
215260

216261
# Leancloud Views
217262
leancloud:
@@ -225,4 +270,32 @@ busuanzi:
225270
enable: false
226271
all_site_uv: false
227272
post_pv: false
228-
busuanzi_pure_mini_js: "https://dn-lbstatics.qbox.me/busuanzi/2.3/busuanzi.pure.mini.js"
273+
busuanzi_pure_mini_js: "https://dn-lbstatics.qbox.me/busuanzi/2.3/busuanzi.pure.mini.js"
274+
275+
# Files Vendors
276+
# Set a CDN for the files src you want to customize. The url should with protocol.
277+
# Default(empty) will load the files from the origin server.
278+
vendors:
279+
# MaterialCDN
280+
# You can load theme unique files from your private cdn or oss.
281+
# The new src will have the base domain you configured below.
282+
# For example
283+
# materialcdn: https://cdn.jsdelivr.net/npm/hexo-material@1.4.0/source
284+
materialcdn:
285+
286+
# Third party library
287+
# You can load these files from public cdn.
288+
# For example
289+
# jquery: https://cdn.bootcss.com/jquery/2.2.1/jquery.js
290+
# jQuery 2.2.0
291+
jquery:
292+
# nprogress 0.2.0
293+
nprogress:
294+
# FontAwesome 4.5.0
295+
fontawesome:
296+
# MathJax 2.7.0-2.7.1
297+
mathjax:
298+
# Prettify r298 (only prettify.js)
299+
prettify:
300+
# Material Icons 3.0.1
301+
material_icons:

languages/ar.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ post:
1010
newer: "أحدث"
1111
qrcode: "اقرأ هذا المقال على جهاز آخر"
1212
comments_load_button: "قراءة تعليقات 「تأكد !disq.us & disquscdn.com & disqus.com يمكن تحميل」"
13+
permalink: " هذا الرابط "
1314
share:
1415
article_rss: "مقالات RSS"
1516
comment_rss: "تعليقات RSS"

languages/en.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ post:
1010
newer: "Newer"
1111
qrcode: "Read this article on other devices"
1212
comments_load_button: "Read Comments (Make sure disq.us, disquscdn.com and disqus.com can load properly)"
13+
permalink: "Link to this article: "
1314
share:
1415
article_rss: "Article RSS"
1516
comment_rss: "Comment RSS"

languages/es.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ post:
1010
newer: "Más nuevo"
1111
qrcode: "Lea este artículo en otro dispositivo"
1212
comments_load_button: "Leer comentarios 「Asegúrese de que 'disq.us & disquscdn.com & disqus.com' se puede cargar」"
13+
permalink: "Link to this article: "
1314
share:
1415
article_rss: "Artículo RSS"
1516
comment_rss: "Comentario RSS"

languages/fr.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ post:
1010
newer: "Récent"
1111
qrcode: "Lire cet article depuis un autre appareil"
1212
comments_load_button: "Lire les commentaires (Assurez-vous que disq.us, disquscdn.com et disqus.com peuvent être chargés)"
13+
permalink: "ce lien: "
1314
share:
1415
article_rss: "Flux RSS des articles"
1516
comment_rss: "Flux RSS des commentaires"

languages/ja.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,17 @@ post:
1010
newer: "新しい"
1111
qrcode: "他のデバイスでこの記事を読む"
1212
comments_load_button: "論評を読む「 あなたは disqus & disquscdn.com & disqus.com をロードできることを確認します」"
13+
permalink: "このリンク:"
1314
share:
1415
article_rss: "記事 RSS"
1516
comment_rss: "論評 RSS"
1617
toTwitter: "Twitter での共有"
17-
toFacebook: "Share to Facebook"
18+
toFacebook: "Facebook での共有"
1819
toLinkedIn: "LinkedIn での共有"
1920
toTelegram: "Telegram での共有"
2021
toGplus: "Google+ での共有"
2122
toWeibo: "Weibo での共有"
22-
toQQ: "Share to QQ"
23+
toQQ: "QQ での共有"
2324
title:
2425
category: "カテゴリー"
2526
tag: "ラベル"

languages/zh-CN.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ post:
1212
comments_load_button: "阅读评论(请确保 disqus 可以正常加载)"
1313
comments_fully_load_button: "加载完整评论(请确保 disqus 可以正常加载)"
1414
comments_proxy_load_button: "加载评论基本模式"
15+
permalink: "本文链接:"
1516
share:
1617
article_rss: "文章 RSS"
1718
comment_rss: "评论 RSS"

0 commit comments

Comments
 (0)