Skip to content

Commit 6fd8fe9

Browse files
authored
1.5.2
realease 1.5.2
2 parents f5e4164 + 989f2e6 commit 6fd8fe9

File tree

20 files changed

+212
-219
lines changed

20 files changed

+212
-219
lines changed

README.md

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
> Nature, Pure | 原质,纯粹
88
99
<p align="center">
10-
<img alt="Version" src="https://img.shields.io/badge/version-1.5.0-757575.svg?style=flat-square"/>
10+
<img alt="Version" src="https://img.shields.io/badge/version-1.5.2-757575.svg?style=flat-square"/>
1111
<a href="https://viosey.com"><img alt="Author" src="https://img.shields.io/badge/author-Viosey-red.svg?style=flat-square"/></a>
1212
<a href="https://hexo.io"><img alt="Hexo" src="https://img.shields.io/badge/hexo-3.0+-0e83cd.svg?style=flat-square"/></a>
1313
<a href="https://nodejs.org/"><img alt="node.js" src="https://img.shields.io/badge/node.js-6.0%2B-43853d.svg?style=flat-square"/></a>
@@ -31,7 +31,7 @@
3131

3232
## Introduction 介绍
3333

34-
An elegant, pure & Material Design theme for Hexo.
34+
An elegant, Pure & Material Design Theme for Hexo.
3535
优雅、纯粹、质感的 Hexo 主题。
3636

3737

@@ -71,6 +71,11 @@ cd material
7171
git checkout {branch/tags name}
7272
```
7373

74+
----
75+
76+
> ATTENTION! As the theme is developing, the theme config template will changes. To avoid conflict for users who are using `git pull` to upgrade the theme, we save the theme config template as `_config.template.yml`. You should make a copy of it and rename to `_config.yml`, then configure `_config.yml` when using the theme.
77+
> **注意!** 在主题的开发迭代过程中,主题的配置文件模板 可能会改动。为了避免使用 `git pull` 更新主题的用户出现冲突,我们将 主题配置文件模板 命名为 `_config.template.yml`。配置主题时,你应该拷贝一份 `_config.template.yml` 并将其重命名为 `_config.yml`
78+
7479
## Docs 文档
7580

7681
[Material Theme Docs](https://material.viosey.com/docs/)
@@ -86,7 +91,7 @@ All kinds of contributions (enhancements, new features, documentation & code imp
8691

8792
Before you start your contributing, please read the [Contributing Rules Wiki](https://github.com/viosey/hexo-theme-material/wiki) first.
8893

89-
欢迎各种形式的贡献,包括但不限于优化,添加功能,文档 & 代码的改进,问题和 bugs 的报告。期待您的 `Pull Request`
94+
欢迎各种形式的贡献,包括但不限于优化,添加功能,文档 & 代码的改进,问题和 bugs 的报告。期待你的 `Pull Request`
9095

9196
在参与贡献之前,请阅读[项目贡献 Wiki](https://github.com/viosey/hexo-theme-material/wiki),了解如何为 Material 主题贡献。
9297

@@ -119,16 +124,18 @@ Proudly using BrowserStack.
119124
120125
### jsDelivr
121126

122-
[![](https://data.jsdelivr.com/v1/package/npm/hexo-material/badge)](https://www.jsdelivr.com/package/npm/hexo-material)
123-
124127
Thanks jsDelivr for providing MaterialCDN service.
125128

126129
> **jsDelivr** – Open Source CDN. free, fast, and reliable. You can using the files from GitHub or NPM and serve them using jsDelivr.
127130
128-
[`
129-
https://cdn.jsdelivr.net/gh/viosey/hexo-theme-material/source/
130-
`](https://cdn.jsdelivr.net/gh/viosey/hexo-theme-material/source/)
131+
[![](https://data.jsdelivr.com/v1/package/npm/hexo-material/badge)](https://www.jsdelivr.com/package/npm/hexo-material)
132+
133+
[`http://cdn.jsdelivr.net/npm/hexo-material/source/`](http://cdn.jsdelivr.net/npm/hexo-material/source/)
134+
135+
[![](https://data.jsdelivr.com/v1/package/gh/viosey/hexo-theme-material/badge)](https://www.jsdelivr.com/package/gh/viosey/hexo-theme-material)
136+
137+
[`https://cdn.jsdelivr.net/gh/viosey/hexo-theme-material/source/`](https://cdn.jsdelivr.net/gh/viosey/hexo-theme-material/source/)
131138

132139
## Render 渲染
133140

134-
![](https://qiniu.viosey.com/img/Materia-overview-tiny.png)
141+
![Materia-overview-tiny.png](https://i.loli.net/2017/09/28/59cccb0b25520.png)

_config.template.yml

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -221,11 +221,11 @@ sidebar:
221221

222222
# Comment Systems
223223
# Available value of "use":
224-
# disqus | disqus_click | changyan | livere | gitment | valine
225-
# If you want to use gitment,you should get the client_id and client_secret form https://github.com/settings/applications/new
226-
# 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
224+
# disqus | disqus_click | changyan | livere | gitment | gitalk | valine
225+
# If you want to use gitment or gitalk,you should get the client_id and client_secret form https://github.com/settings/applications/new
226+
# If you want to use valine,you should get the app_id and app_key form https://leancloud.cn ,more setting please see https://valine.js.org
227227
comment:
228-
use:
228+
use:
229229
shortname: # duoshuo or disqus shortname
230230
changyan_appid:
231231
changyan_conf:
@@ -235,8 +235,19 @@ comment:
235235
gitment_owner: # git repo's owner
236236
gitment_client_id: # github app client id
237237
gitment_client_secret : # github app client secret
238-
valine_leancloud_appId: # leancloud application app id
239-
valine_leancloud_appKey: # leancloud application app key
238+
valine_leancloud_appId: # leancloud application app id
239+
valine_leancloud_appKey: # leancloud application app key
240+
valine_notify: false # valine mail notify (true/false) https://github.com/xCss/Valine/wiki
241+
valine_verify: false # valine verify code (true/false)
242+
valine_pageSize: 10 # comment list page size
243+
valine_avatar: identicon # gravatar style https://valine.js.org/#/avatar
244+
valine_lang: zh-cn # i18n
245+
valine_placeholder: Just go go # valine comment input placeholder(like: Please leave your footprints )
246+
valine_guest_info: nick,mail,link #valine comment header info
247+
gitalk_repo: # git repo of the hexo
248+
gitalk_owner: # git repo's owner
249+
gitalk_client_id: # github app client id
250+
gitalk_client_secret: # github app client secret
240251

241252
# Search Systems
242253
# Available value:

languages/nl_NL.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
sidebar:
2+
homepage: "Home"
3+
archive: "Archief"
4+
article_num: "Aantal artikelen"
5+
post:
6+
visitor: "Bezoekers"
7+
views: "Bekeken"
8+
continue: "Lees meer"
9+
older: "Ouder"
10+
newer: "Nieuwer"
11+
qrcode: "Lees dit artikel op andere apparaten"
12+
comments_load_button: "Lees reacties (Zorg dat disq.us, disquscdn.com en disqus.com correct geladen kunnen worden)"
13+
permalink: "Link naar dit artikel: "
14+
share:
15+
article_rss: "Artikel RSS"
16+
comment_rss: "Reactie RSS"
17+
toTwitter: "Deel op Twitter"
18+
toFacebook: "Deel op Facebook"
19+
toLinkedIn: "Deel op LinkedIn"
20+
toTelegram: "Deel via Telegram"
21+
toGplus: "Deel op Google+"
22+
toWeibo: "Deel op Weibo"
23+
toQQ: "Deel via QQ"
24+
title:
25+
category: "Categorieën"
26+
tag: "Label"
27+
misc:
28+
home: "Home"
29+
theme: "Thema"

languages/ru.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
sidebar:
2+
homepage: "Главная страница"
3+
archive: "Архив"
4+
article_num: "Количество статей"
5+
post:
6+
visitor: "Посетители"
7+
views: "Просмотры"
8+
continue: "Читать далее"
9+
older: "Старые"
10+
newer: "Новые"
11+
qrcode: "Читать эту статью на другом устройстве"
12+
comments_load_button: "Читать комментарии (Убедитесь, что disq.us, disquscdn.com и disqus.com могут корректно загрузиться)"
13+
permalink: "Ссылка на эту статью: "
14+
share:
15+
article_rss: "RSS статьи"
16+
comment_rss: "RSS комментариев"
17+
toTwitter: "Поделиться на Twitter"
18+
toFacebook: "Поделиться на Facebook"
19+
toLinkedIn: "Поделиться на LinkedIn"
20+
toTelegram: "Поделиться на Telegram"
21+
toGplus: "Поделиться на Google+"
22+
toWeibo: "Поделиться на Weibo"
23+
toQQ: "Поделиться на QQ"
24+
title:
25+
category: "Категории"
26+
tag: "Тег"
27+
misc:
28+
home: "Главная"
29+
theme: "Тема"

layout/_partial/config_font.ejs

Lines changed: 5 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -69,51 +69,13 @@
6969
font-weight: 500;
7070
src: local('Roboto MediumItalic'), local('Roboto-MediumItalic'), url('https://cdnjs.cat.net/ajax/libs/mdui/0.2.1/fonts/roboto/Roboto-MediumItalic.woff2') format('woff2'), url('https://cdnjs.cat.net/ajax/libs/mdui/0.2.1/fonts/roboto/Roboto-MediumItalic.woff') format('woff');
7171
}
72-
@font-face {
73-
font-family: 'Material Icons';
74-
font-style: normal;
75-
font-weight: 400;
76-
src: local('Material Icons'),
77-
local('MaterialIcons-Regular'),
78-
url(https://cdnjs.cat.net/ajax/libs/material-design-icons/3.0.1/iconfont/MaterialIcons-Regular.woff2) format('woff2'),
79-
url(https://cdnjs.cat.net/ajax/libs/material-design-icons/3.0.1/iconfont/MaterialIcons-Regular.woff) format('woff'),
80-
url(https://cdnjs.cat.net/ajax/libs/material-design-icons/3.0.1/iconfont/MaterialIcons-Regular.ttf) format('truetype');
81-
}
8272
</style>
8373
<% } %>
8474
85-
<!-- Import Material Icon -->
86-
<% if(theme.vendors.material_icons) { %>
87-
<link rel="stylesheet" href="<%= theme.vendors.material_icons %>">
88-
<% } else if(theme.fonts.use === "catnet") { %>
89-
<% } else if(theme.vendors.materialcdn) { %>
90-
<style>
91-
@font-face {
92-
font-family: 'Material Icons';
93-
font-style: normal;
94-
font-weight: 400;
95-
src: local('Material Icons'),
96-
local('MaterialIcons-Regular'),
97-
url(<%=theme.vendors.materialcdn %>/fonts/MaterialIcons-Regular.woff2) format('woff2'),
98-
url(<%=theme.vendors.materialcdn %>/fonts/MaterialIcons-Regular.woff) format('woff'),
99-
url(<%=theme.vendors.materialcdn %>/fonts/MaterialIcons-Regular.ttf) format('truetype');
100-
}
101-
</style>
102-
<% } else if(theme.fonts.use === "google") { %>
103-
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
104-
<% } else if(theme.fonts.use === "ustc") { %>
105-
<link href="https://fonts.proxy.ustclug.org/icon?family=Material+Icons" rel="stylesheet">
75+
<!-- Import Material Icons -->
76+
77+
<% if(theme.vendors.materialcdn) { %>
78+
<%- cssLsload({path:(theme.vendors.materialcdn + '/css/material-icons.css'),key:'material_icons'}) %>
10679
<% } else { %>
107-
<style>
108-
@font-face {
109-
font-family: 'Material Icons';
110-
font-style: normal;
111-
font-weight: 400;
112-
src: local('Material Icons'),
113-
local('MaterialIcons-Regular'),
114-
url(<%- url_for('fonts/MaterialIcons-Regular.woff2') %>) format('woff2'),
115-
url(<%- url_for('fonts/MaterialIcons-Regular.woff') %>) format('woff'),
116-
url(<%- url_for('fonts/MaterialIcons-Regular.ttf') %>) format('truetype');
117-
}
118-
</style>
80+
<%- cssLsload({path:('css/material-icons.css'),key:'material_icons'}) %>
11981
<% } %>

0 commit comments

Comments
 (0)