Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit746a694

Browse files
committed
🚀 updated to v1.4.2 - added search engine
1 parentcf78ab2 commit746a694

File tree

20 files changed

+831
-201
lines changed

20 files changed

+831
-201
lines changed

‎CHANGELOG.md‎

Lines changed: 36 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,41 @@
11
#Changelog
22
[中文更变日志](https://github.com/TriDiamond/hexo-theme-obsidian/blob/master/CHANGELOG_CN.md)
33

4+
##🚀 v1.4.2 (Nov 11, 2019)
5+
6+
🎉 Obsidian theme now comes with search feature! Horray! Hope you guys love this update!
7+
8+
###Features ✨
9+
- Added the mostly requested feature, local site search!
10+
11+
>The search feature is base on the index generated by[`hexo-generator-search`](https://github.com/wzpan/hexo-generator-search),
12+
So you need to install this plugin before you can use the search feature.
13+
14+
####Installation guide:
15+
16+
Install by npm
17+
18+
```bash
19+
$ npm install hexo-generator-search --save
20+
```
21+
22+
Adding the plugin config in your root`_config.yml`
23+
24+
```yaml
25+
search:
26+
path:search.xml
27+
field:post
28+
content:true
29+
```
30+
31+
Regenrate files
32+
33+
```bash
34+
hexo clean && hexo g
35+
```
36+
37+
Happy blogging! ❤️
38+
439
##🚀 v1.4.1 (Nov 9, 2019)
540

641
✨ Shipped a complete redesigned`archives` page UI and enhanced modern`link style`! Stay being awesome! 👽
@@ -155,4 +190,4 @@ Added a few more features and enhanced a bit here and there. Have fun and enjoy
155190

156191
## 🚀 v1.0.0 (Oct 10, 2019)
157192
#### Features ✨
158-
-Very first complete version of the theme
193+
-Very first complete version of the theme

‎CHANGELOG_CN.md‎

Lines changed: 37 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,40 @@
11
#Changelog
22

3+
##🚀 v1.4.2 (2019-11-11)
4+
5+
🎉 Obsidian 主题加添了等待已久的搜索功能!希望大家喜欢!
6+
7+
###✨新功能
8+
- 加添了等待已久的搜索功能!
9+
10+
>此搜索功能是基于[`hexo-generator-search`](https://github.com/wzpan/hexo-generator-search) 生成的本地索引,
11+
所以要使用搜索功能首先就要安装好这个插件,然后在生成你的静态文件的时候,你的索引文件也会一并被生成的。
12+
13+
####安装说明:
14+
15+
NPM安装
16+
17+
```bash
18+
$ npm install hexo-generator-search --save
19+
```
20+
21+
在你的根目录配置`_config.yml` 里面添加hexo-generator-search的配置
22+
23+
```yaml
24+
search:
25+
path:search.xml
26+
field:post
27+
content:true
28+
```
29+
30+
重新生成静态文件
31+
32+
```bash
33+
hexo clean && hexo g
34+
```
35+
36+
坚持写博客,越写越快乐!❤️
37+
338
##🚀 v1.4.1 (十一月 10, 2019)
439

540
✨ 重新设计了`归档`页面UI和所有页面的`链接样式`!Stay being awesome! 👽
@@ -72,7 +107,7 @@ page_titles:
72107

73108
## 🚀 v1.3.3 (2019-10-23)
74109

75-
### ✨ 新功能
110+
### ✨ 新功能
76111
-添加了分享功能 - [`share.js`](https://github.com/overtrue/share.js)
77112

78113
### 💥 更变
@@ -154,4 +189,4 @@ UI整体升级,整体看起来更加舒服和高雅。✨
154189

155190
## 🚀 v1.0.0 (2019-10-10)
156191
#### ✨ 新功能
157-
-首个完整版本发布! 🚀
192+
-首个完整版本发布! 🚀

‎README.md‎

Lines changed: 37 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ Open `/themes/obsidian/_config.yml` can change the theme configs
7979
# Menu setting | format = title_name: link_url
8080
menu:
8181
PAGE:/page
82-
82+
8383
# Page custom titles
8484
page_titles:
8585
categories:"Categories"
@@ -125,7 +125,7 @@ rss: atom.xml
125125
autoplay:false
126126

127127
# default mp3 file
128-
mp3:
128+
mp3:
129129
-statics/chengdu.mp3
130130

131131
# ---------------------------------------------------------------
@@ -183,25 +183,25 @@ html_truncate:
183183
keepWhitespaces:true
184184
# Reserving the last complete word, without breaking the word
185185
reserveLastWord:true
186-
186+
187187
# Enable Busuanzi statistic plugin
188188
# see http://ibruce.info/2015/04/04/busuanzi/
189189
busuanzi:
190190
enable:true
191-
191+
192192
# Enable social media sharing
193193
# see https://github.com/overtrue/share.js/
194194
sharejs:
195195
enable:true
196196
disabled:'facebook,douban,linkedin,diandian,tencent,google'
197-
197+
198198
# Use codemirror instead of highlight js for better colors
199199
# if you want more language support check the modes list at official website
200200
# modes see: https://codemirror.net/mode/
201201
# see https://codemirror.net/
202202
codemirror:
203203
modes:['javascript', 'css', 'xml', 'htmlmixed', 'clike', 'php', 'shell', 'python']
204-
204+
205205
```
206206
</details>
207207

@@ -217,11 +217,11 @@ You can choose from using Valine or Gitalk
217217
>Since version`v1.3.5` code block highlight has changed from`highlight.js` to
218218
`codemirror`, but the Hexo default highlight still need to be disabled to take affect.
219219
!! So Please make sure you disabled Hexo's default highlight setting !!
220-
220+
221221
Hexo configuration file`_config.yml` located at the ROOT path of your blog.
222222

223-
> ⚠️ Please note do not make these changes in the theme's config file,
224-
changing configs in the theme config file `_config.yml` will not work properly.
223+
>⚠️ Please note do not make these changes in the theme's config file,
224+
changing configs in the theme config file`_config.yml` will not work properly.
225225

226226
```yaml
227227
...
@@ -263,7 +263,7 @@ date: 2019-07-14 18:38:45
263263
categories:
264264
- Category1
265265
- Category2
266-
tags:
266+
tags:
267267
- Tag1
268268
- Tag2
269269
mp3: http://domain.com/awesome.mp3
@@ -283,7 +283,7 @@ date: 2019-07-14 18:38:45
283283
categories:
284284
- Category1
285285
- Category2
286-
tags:
286+
tags:
287287
- Tag1
288288
- Tag2
289289
mp3: http://domain.com/awesome.mp3
@@ -336,6 +336,31 @@ cd themes/osidian
336336
git pull
337337
```
338338

339+
##Using the search engine
340+
341+
###Installation guide:
342+
343+
Install by npm
344+
345+
```bash
346+
$ npm install hexo-generator-search --save
347+
```
348+
349+
Adding the plugin config in your root`_config.yml`
350+
351+
```yaml
352+
search:
353+
path:search.xml
354+
field:post
355+
content:true
356+
```
357+
358+
Regenrate files
359+
360+
```bash
361+
hexo clean && hexo g
362+
```
363+
339364
##Related
340365

341-
I have made a[`Typro`](https://typora.io/) theme[`Obsidian`](https://github.com/TriDiamond/typro-theme-obsidian) especially for this blog theme.
366+
I have made a[`Typro`](https://typora.io/) theme[`Obsidian`](https://github.com/TriDiamond/typro-theme-obsidian) especially for this blog theme.

‎README_CN.md‎

Lines changed: 37 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
**[预览](http://tridiamond.me)** |**[更变日志](https://github.com/TriDiamond/hexo-theme-obsidian/blob/master/CHANGELOG_CN.md)**
1010

11-
🇺🇸**[English Doc](https://github.com/TriDiamond/hexo-theme-obsidian/blob/master/README.md)** |
11+
🇺🇸**[English Doc](https://github.com/TriDiamond/hexo-theme-obsidian/blob/master/README.md)** |
1212
**[ChangeLog](https://github.com/TriDiamond/hexo-theme-obsidian/blob/master/CHANGELOG.md)**
1313

1414
![screenshot](https://res.cloudinary.com/tridiamond/image/upload/v1573323147/blog/A-Obsidian-full_ubmo0d.png)
@@ -74,7 +74,7 @@ theme: obsidian
7474
# 菜单设置 | 格式 = 菜单名: 菜单url
7575
menu:
7676
PAGE:/page
77-
77+
7878
# 分类页和标签页自定义标题配置
7979
page_titles:
8080
categories:"Categories"
@@ -120,7 +120,7 @@ rss: atom.xml
120120
autoplay:false
121121

122122
# 默认mp3文件
123-
mp3:
123+
mp3:
124124
-statics/chengdu.mp3
125125

126126
# ---------------------------------------------------------------
@@ -178,26 +178,26 @@ html_truncate:
178178
keepWhitespaces:true
179179
# 截取到最后的时候保留完成的字(只对英文有用)
180180
reserveLastWord:true
181-
181+
182182
# Busuanzi 浏览量统计插件
183183
# see http://ibruce.info/2015/04/04/busuanzi/
184184
busuanzi:
185185
enable:true
186-
186+
187187
# Sharejs 分享
188188
# see https://github.com/overtrue/share.js/
189189
sharejs:
190190
enable:true
191191
disabled:'facebook,douban,linkedin,diandian,tencent,google'
192-
192+
193193
# 使用了codemirror替换了highlight.js,代码高亮更加完善,也更接近IDE的高亮样式
194194
# 默认已经填入了一些语言的mode支持,如果你需要其他语言的支持,请查看codemirror官网的mode
195195
# modes文档请看: https://codemirror.net/mode/
196196
# codemirror官网: https://codemirror.net/
197197
# 默认支持了:JS, HTML, CSS, PHP, JAVA, C, C#, C++, SHELL, PYTHON.
198198
codemirror:
199199
modes:['javascript', 'css', 'xml', 'htmlmixed', 'clike', 'php', 'shell', 'python']
200-
200+
201201
```
202202
</details>
203203

@@ -209,11 +209,11 @@ codemirror:
209209
- 如果你是使用`Gitalk`, 你可以打开`busuanzi` 文章详情页就会显示文章浏览量统计.
210210

211211
###代码块样式
212-
212+
213213
>版本`v1.3.5`开始代码高亮已经用`codemirror`替换了`highlight.js`
214214
但是Hexo默认的highlight配置还是需要关闭的。
215215
!!所以无比把Hexo默认的highlight配置改为`enable: flase` !!
216-
216+
217217
在博客根目录的`_config.yml`修改
218218

219219
>⚠️ 注意不是主题里面的`_config.yml`,在主题里面加这个是无效的哦
@@ -259,7 +259,7 @@ date: 2019-07-14 18:38:45
259259
categories:
260260
- Category1
261261
- Category2
262-
tags:
262+
tags:
263263
- Tag1
264264
- Tag2
265265
mp3: http://domain.com/awesome.mp3
@@ -279,7 +279,7 @@ date: 2019-07-14 18:38:45
279279
categories:
280280
- 分类1
281281
- 分类2
282-
tags:
282+
tags:
283283
- 标签1
284284
- 标签2
285285
mp3: http://domain.com/awesome.mp3
@@ -332,6 +332,31 @@ cd themes/osidian
332332
git pull
333333
```
334334

335+
##使用搜索功能
336+
337+
###安装说明:
338+
339+
NPM安装
340+
341+
```bash
342+
$ npm install hexo-generator-search --save
343+
```
344+
345+
在你的根目录配置`_config.yml` 里面添加hexo-generator-search的配置
346+
347+
```yaml
348+
search:
349+
path:search.xml
350+
field:post
351+
content:true
352+
```
353+
354+
重新生成静态文件
355+
356+
```bash
357+
hexo clean && hexo g
358+
```
359+
335360
##相关
336361

337-
做了一个[`Typro`](https://typora.io/) 主题[`Obsidian`](https://github.com/TriDiamond/typro-theme-obsidian) 专门给写博客的你们.
362+
做了一个[`Typro`](https://typora.io/) 主题[`Obsidian`](https://github.com/TriDiamond/typro-theme-obsidian) 专门给写博客的你们.

‎_config.yml‎

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

2222
# Theme version
23-
version:"1.4.1"
23+
version:"1.4.2"
2424

2525
# ---------------------------------------------------------------
2626
# Theme default settings

‎languages/default.yml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,6 @@ word_count: Words count
3232
read_time:Reading time
3333
read_count:Read count
3434
default_category:Article
35+
search_initialise:Initialising search index...
36+
search_start:Please input search keywords.
37+
search_empty:No result found, please try other keywords.

‎languages/fr.yml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,6 @@ word_count: Words count
2929
read_time:Reading time
3030
read_count:Read count
3131
default_category:Article
32+
search_initialise:Initialising search index...
33+
search_start:Please input search keywords.
34+
search_empty:No result found, please try other keywords.

‎languages/it.yml‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,7 @@ readed: Readed
2828
word_count:Words count
2929
read_time:Reading time
3030
read_count:Read count
31-
default_category:Article
31+
default_category:Article
32+
search_initialise:Initialising search index...
33+
search_start:Please input search keywords.
34+
search_empty:No result found, please try other keywords.

‎languages/nl.yml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,6 @@ word_count: Words count
2929
read_time:Reading time
3030
read_count:Read count
3131
default_category:Article
32+
search_initialise:Initialising search index...
33+
search_start:Please input search keywords.
34+
search_empty:No result found, please try other keywords.

‎languages/no.yml‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,7 @@ uv: Unique visitors
2727
readed:Readed
2828
word_count:Word count
2929
read_time:Read time
30-
default_category:Article
30+
default_category:Article
31+
search_initialise:Initialising search index...
32+
search_start:Please input search keywords.
33+
search_empty:No result found, please try other keywords.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp