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

Commite7250cd

Browse files
committed
🚀 updated to v1.3.5
1 parent288e07b commite7250cd

File tree

14 files changed

+933
-319
lines changed

14 files changed

+933
-319
lines changed

‎CHANGELOG.md‎

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,20 @@
11
#Changelog
2+
[中文更变日志](https://github.com/TriDiamond/hexo-theme-obsidian/blob/master/CHANGELOG_CN.md)
3+
4+
##🚀 v1.3.5 (Nov 4, 2019)
5+
6+
Code block styles and color syntax looks way more awesome now! OMG!Hope you all enjoy this update!❤️
7+
8+
###Changes 💥
9+
- Loader leaving added smoother transition effect.
10+
- Changed code highlighting plugin, swapped highlight.js with codemirror to have a better color syntax. A more IDE like syntax! ✨(#6)
11+
- Restyled the code block, now looks even more professional! ✨
12+
- Complete rewritten TOC css styles, added a pulsing active ball to the current title. Also fixed the clicking space glitchy issue. (#13)
13+
14+
###Bug fixes 🐛
15+
- Fixed a few icon position problems.
16+
- Fixed article nav bar subtitle overflowing issue.
17+
- Fixed a few font-family issue here and there.
218

319
##🚀 v1.3.4 (Oct 24, 2019)
420

@@ -65,14 +81,14 @@ Enhanced bunch of features and add bunch of fun stuffs. Hope you all enjoy them!
6581

6682
###Features ✨
6783
- Added English language support! Hooray!
68-
- Home page added "Read article" so it's moreclean that it's just a summary, click to read full article.
84+
- Home page added "Read article" so it's moreclear that it's just a summary, click to read full article.
6985
- Added back to top button, also with a fun progress tracking effect!
7086
- Footer theme added theme version display.
7187
- Article added a parameter to set the number of characters this particular article should keep.
7288

7389
###Changes 💥
7490
- Added sticky effect for both home page and article page navigation bar, with auto hide when scroll, allow reading with less undistraction.
75-
-Readded google analytics js, which was removed before.
91+
-Re-added google analytics js, which was removed before.
7692
- Article top progress bar is enlarged to more catch eyeballs.
7793

7894
###Bug fixes 🐛

‎CHANGELOG_CN.md‎

Lines changed: 113 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,113 @@
1+
#Changelog
2+
3+
##🚀 v1.3.5 (2019-11-04)
4+
5+
现在代码的高亮与IDE的高亮更加相似了,也变得更加专业,更加高尚了!希望你们喜欢这次的更新!Happy blogging!❤️
6+
7+
###更变 💥
8+
- 首次打开加载图片加了渐出效果,首次进入页面感觉更加舒服了。
9+
- 替换了代码块的高亮插件,`highlight.js`换成了`codemirror`。现在代码的高亮与IDE的高亮更加相似了!✨ (#6)
10+
- 代码块的UI也升级了,现在看起来更加专业高尚了!✨
11+
- TOC目录样式重写了,当前的标题前面加了一个"脈动回来"的特效。这个改动也一并修复了目录标题的点击位子有时候错位的问题。(#13)
12+
13+
###Bug修复 🐛
14+
- 修复有一些Icons位置和布局中的问题。
15+
- 修复了文章导航的标题太长会超出高度的问题。
16+
- 修复了一些文字字体没有限定好的问题。
17+
18+
##🚀 v1.3.4 (Oct 24, 2019)
19+
20+
###更变 💥
21+
- 再次优化了手机端响应的样式。
22+
- 优化了`ul``ol`的UI。
23+
24+
###Bug修复 🐛
25+
- 修复了首页链接样式。
26+
- 修复了TOC标题太长而超出框外的问题。
27+
- 修复了标题如果是链接样式的问题。
28+
29+
##🚀 v1.3.3 (2019-10-23)
30+
31+
###功能 ✨
32+
- 添加了分享功能 -[`share.js`](https://github.com/overtrue/share.js)
33+
34+
###更变 💥
35+
- 页面首次加载图标换成了`Load Awesome``la-ball-atom`. -[`Load Awesome`](https://github.com/danielcardoso/load-awesome)
36+
37+
##🚀 v1.3.2 (2019-10-21)
38+
39+
###更变 💥
40+
- 修改了斜体`*斜体*` 的文字颜色和样式。
41+
42+
###Bug修复 🐛
43+
- 首页的第一个文章的高度改为动态变化,如果文章的内容撑出的高度大于屏幕高度,就按照文章的实际高度,如果不是文章的最小高度就是屏幕高度。
44+
45+
##🚀 v1.3.1 (2019-10-18)
46+
47+
###功能 ✨
48+
- 添加了`不蒜子` - 极简网页计算器的支持。
49+
50+
###更变 💥
51+
- 把文章浏览数改为更具评论插件而变,目前插件支持`valine``gitalk`
52+
53+
###Bug修复 🐛
54+
- 修复了当文章的分类是空时,Hexo生成静态文件失败。
55+
- 修复了一些响应式排版问题。
56+
57+
##🚀 v1.3.0 (2019-10-18)
58+
59+
UI整体升级,整体看起来更加舒服和高雅。✨
60+
61+
###功能 ✨
62+
- 所有文章的标题上面都添加了这个文章的所属分类。✨
63+
64+
###更变 💥
65+
- UI整体升级,整体看起来更加舒服和高雅。✨
66+
- 返回顶部/阅读跟进球添加了水波的动态效果。
67+
- 替换和升级了所有的icons.
68+
- 优化了音乐播放进度条的效果。
69+
- 优化了所有响应式排版和效果。
70+
- 传统CSS换成使用`Stylus`,支持SASS/LESS的编写格式。
71+
- 所有JS和CSS都引用了CDN,达到整体网站的速度提升。🚀
72+
73+
###Bug修复 🐛
74+
- 修复了"加载更多"没有自动根据语言而变的问题。
75+
- 修复了文章的评论都是显示同一个的问题。
76+
77+
##🚀 v1.2.0 (2019-10-15)
78+
79+
优化了和添加了很多有趣的功能,希望你们会喜欢!
80+
81+
###功能 ✨
82+
- 添加了英文支持!想国际化的博客们,一起欢呼一下吧!Hooray!👋
83+
- 首页添加了"阅读全文",让首页的文章更加一目了然是一个简介而不是全文。也让用户一看就知道怎么去看全文。
84+
- 添加了返回顶部的按钮,按钮自带一个有趣的波动效果哦!
85+
- 页尾添加了主题版本号。
86+
- 文章的`front-matter`属性添加了`preview`属性来定义这遍文章的预览需要保留多少个字符。
87+
88+
###更变 💥
89+
- 首页和文章页的导航栏添加了滑动固定效果,下滑隐藏,上滑显示效果。阅读时会更专注。
90+
- 之前因为加载问题去掉的google analytics插件被重新加回来了。
91+
- 放大了文章头部进度条,让它更加被容易看到。
92+
93+
###Bug修复 🐛
94+
- 修复口号的高度抖动的问题。
95+
- 修复滑动页面时的闪屏的问题。
96+
97+
##🚀 v1.1.0 (2019-10-12)
98+
99+
添加了几个新功能和优化一些体验,继续享受博客给你们带来的快乐吧!❤️
100+
101+
###功能 ✨
102+
- 添加[Valine](https://valine.js.org)评论插件支持。
103+
- 优化了文章页的目录样式和功能。
104+
- 文章页添加了用户信息侧边栏
105+
- 文章也添加了浏览量统计
106+
107+
###更变 💥
108+
- 文章页换成网格布局。
109+
- 文章页换成双栏布局,现在加上了侧边栏。
110+
111+
##🚀 v1.0.0 (2019-10-10)
112+
####功能 ✨
113+
- 首个完整版本发布! 🚀

‎README.md‎

Lines changed: 37 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
11
#Hexo-theme-obsidian
22

3-
[![Join the chat athttps://gitter.im/TriDiamond/hexo-theme-obsidian](https://badges.gitter.im/TriDiamond/hexo-theme-obsidian.svg)](https://gitter.im/TriDiamond/hexo-theme-obsidian?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
4-
53
>A dark Hexo theme, it's responsive, simple but elegant.
64
75
![Latest Release Version](https://img.shields.io/github/v/release/TriDiamond/hexo-theme-obsidian)
86
![Latest Release Date](https://img.shields.io/github/release-date/TriDiamond/hexo-theme-obsidian)
97
![License](https://img.shields.io/github/license/TriDiamond/hexo-theme-obsidian)
8+
[![Join the chat athttps://gitter.im/TriDiamond/hexo-theme-obsidian](https://badges.gitter.im/TriDiamond/hexo-theme-obsidian.svg)](https://gitter.im/TriDiamond/hexo-theme-obsidian?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
9+
10+
💻**[PREVIEW](http://tridiamond.me)**
1011

11-
**[PREVIEW](http://tridiamond.me)** |
12-
**[中文文档](https://github.com/TriDiamond/hexo-theme-obsidian/blob/master/README_CN.md)** |
13-
**[CHANGES](https://github.com/TriDiamond/hexo-theme-obsidian/blob/master/CHANGELOG.md)**
12+
- 🇺🇸**[CHANGES](https://github.com/TriDiamond/hexo-theme-obsidian/blob/master/CHANGELOG.md)**
13+
14+
- 🇨🇳**[中文文档](https://github.com/TriDiamond/hexo-theme-obsidian/blob/master/README_CN.md)** |
15+
**[更变日志](https://github.com/TriDiamond/hexo-theme-obsidian/blob/master/CHANGELOG_CN.md)**
1416

1517

1618
![screenshot](https://res.cloudinary.com/tridiamond/image/upload/v1571332123/blog/A-Obsidian_mlnj3q.png)
@@ -37,11 +39,15 @@ theme: obsidian
3739

3840
Open`/themes/obsidian/_config.yml` can change the theme configs
3941

42+
<details>
43+
<summary>Full detail config</summary>
44+
4045
```yaml
4146
#! ---------------------------------------------------------------
42-
#! Obsidian theme use manual highlight.js
43-
#! To maintain the code block css display properly
44-
#! please change your default highlight setting as off!!
47+
#! Since version `v1.3.5` code block highlight has changed from `highlight.js` to
48+
#! `codemirror`, but the Hexo default highlight still need to be disabled to take affect.
49+
#! !! So Please make sure you disabled Hexo's default highlight setting !!
50+
#! ---------------------------------------------------------------
4551
#! Rebuild files after you changed the config:
4652
#! `hexo clean && hexo g`
4753
#! ---------------------------------------------------------------
@@ -169,8 +175,17 @@ sharejs:
169175
enable:true
170176
disabled:'facebook,douban,linkedin,diandian,tencent,google'
171177

178+
# Use codemirror instead of highlight js for better colors
179+
# if you want more language support check the modes list at official website
180+
# modes see: https://codemirror.net/mode/
181+
# see https://codemirror.net/
182+
codemirror:
183+
modes:['javascript', 'css', 'xml', 'htmlmixed', 'clike', 'php', 'shell', 'python']
184+
172185
```
173186
187+
</details>
188+
174189
### Comments
175190
176191
You can choose from using Valine or Gitalk
@@ -180,10 +195,9 @@ You can choose from using Valine or Gitalk
180195

181196
### Code block style
182197

183-
> Turn off default `highlight` to ensure code block style display properly.
184-
Because Obsidian theme use manual highlight.js
185-
To maintain the code block css display properly
186-
please change your default highlight setting as off!!
198+
> Since version `v1.3.5` code block highlight has changed from `highlight.js` to
199+
`codemirror`, but the Hexo default highlight still need to be disabled to take affect.
200+
!! So Please make sure you disabled Hexo's default highlight setting !!
187201

188202
Hexo configuration file `_config.yml` located at the ROOT path of your blog.
189203

@@ -202,6 +216,17 @@ highlight:
202216
...
203217
```
204218

219+
Codemirror settings
220+
221+
```yaml
222+
# Use codemirror instead of highlight js for better color syntax
223+
# if you want more language support check the modes list at official website
224+
# modes see: https://codemirror.net/mode/
225+
# see https://codemirror.net/
226+
codemirror:
227+
modes: ['javascript', 'css', 'xml', 'htmlmixed', 'clike', 'php', 'shell', 'python']
228+
```
229+
205230
Rebuild files after you changed the config
206231

207232
```bash

‎README_CN.md‎

Lines changed: 39 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,19 @@
44
![Latest Release Version](https://img.shields.io/github/v/release/TriDiamond/hexo-theme-obsidian)
55
![Latest Release Date](https://img.shields.io/github/release-date/TriDiamond/hexo-theme-obsidian)
66
![License](https://img.shields.io/github/license/TriDiamond/hexo-theme-obsidian)
7+
[![Join the chat athttps://gitter.im/TriDiamond/hexo-theme-obsidian](https://badges.gitter.im/TriDiamond/hexo-theme-obsidian.svg)](https://gitter.im/TriDiamond/hexo-theme-obsidian?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
78

89
**[预览](http://tridiamond.me)** |
910
**[English Doc](https://github.com/TriDiamond/hexo-theme-obsidian/blob/master/README.md)** |
1011
**[更新日志](https://github.com/TriDiamond/hexo-theme-obsidian/blob/master/CHANGELOG.md)**
1112

13+
💻**[预览](http://tridiamond.me)**
14+
15+
- 🇨🇳**[更变日志](https://github.com/TriDiamond/hexo-theme-obsidian/blob/master/CHANGELOG_CN.md)**
16+
17+
- 🇺🇸[English Doc](https://github.com/TriDiamond/hexo-theme-obsidian/blob/master/README.md)** |
18+
**[ChangeLog](https://github.com/TriDiamond/hexo-theme-obsidian/blob/master/CHANGELOG.md)**
19+
1220
![screenshot](https://res.cloudinary.com/tridiamond/image/upload/v1571332123/blog/A-Obsidian_mlnj3q.png)
1321

1422
##安装
@@ -33,12 +41,14 @@ theme: obsidian
3341

3442
打开`/themes/obsidian/_config.yml` 文件可以改变主题配置
3543

36-
```yaml
44+
<details>
45+
<summary>详细配置文件,点击展开</summary>
3746

47+
```yaml
3848
#! ---------------------------------------------------------------
39-
#!Obsidian theme 使用手动启用highlight.js 代码高亮
40-
#!为了可以正常显示代码高亮的样式
41-
#!请务必在hexo默认配置里面关闭highlight
49+
#!版本`v1.3.5`开始代码高亮已经用`codemirror`替换了`highlight.js`,
50+
#!但是Hexo默认的highlight配置还是需要关闭的。
51+
#!!!所以无比把Hexo默认的highlight配置改为`enable: flase` !!
4252
#! ---------------------------------------------------------------
4353
#! highlight:
4454
#! enable: false
@@ -164,7 +174,16 @@ sharejs:
164174
enable:true
165175
disabled:'facebook,douban,linkedin,diandian,tencent,google'
166176

177+
# 使用了codemirror替换了highlight.js,代码高亮更加完善,也更接近IDE的高亮样式
178+
# 默认已经填入了一些语言的mode支持,如果你需要其他语言的支持,请查看codemirror官网的mode
179+
# modes文档请看: https://codemirror.net/mode/
180+
# codemirror官网: https://codemirror.net/
181+
# 默认支持了:JS, HTML, CSS, PHP, JAVA, C, C#, C++, SHELL, PYTHON.
182+
codemirror:
183+
modes:['javascript', 'css', 'xml', 'htmlmixed', 'clike', 'php', 'shell', 'python']
184+
167185
```
186+
</details>
168187
169188
### 评论插件
170189
@@ -174,10 +193,10 @@ sharejs:
174193
-如果你是使用 `Gitalk`, 你可以打开 `busuanzi` 文章详情页就会显示文章浏览量统计.
175194

176195
### 代码块样式
177-
178-
>因为Obsidian theme 使用手动启用highlight.js 代码高亮
179-
为了可以正常显示代码高亮的样式
180-
请务必在hexo默认配置里面关闭`highlight`。
196+
197+
>版本`v1.3.5`开始代码高亮已经用`codemirror`替换了`highlight.js`,
198+
但是Hexo默认的highlight配置还是需要关闭的。
199+
!!所以无比把Hexo默认的highlight配置改为`enable:flase` !!
181200

182201
在博客根目录的`_config.yml`修改
183202

@@ -195,6 +214,18 @@ highlight:
195214
...
196215
```
197216

217+
Codemirror代码高亮配置
218+
219+
```yaml
220+
# 使用了codemirror替换了highlight.js,代码高亮更加完善,也更接近IDE的高亮样式
221+
# 默认已经填入了一些语言的mode支持,如果你需要其他语言的支持,请查看codemirror官网的mode
222+
# modes文档请看: https://codemirror.net/mode/
223+
# codemirror官网: https://codemirror.net/
224+
# 默认支持了:JS, HTML, CSS, PHP, JAVA, C, C#, C++, SHELL, PYTHON.
225+
codemirror:
226+
modes: ['javascript', 'css', 'xml', 'htmlmixed', 'clike', 'php', 'shell', 'python']
227+
```
228+
198229
修改了默认highlight配置后需要重新生成文件
199230

200231
```bash

‎_config.yml‎

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
11
#! ---------------------------------------------------------------
2-
#! Obsidian theme use manual highlight.js
3-
#! To maintain the code block css display properly
4-
#! please change your default highlight setting as off!!
2+
#! Theme Obsidian - A dark Hexo theme, it's responsive, simple but elegant.
3+
#! @author: TriDiamond
4+
#! @github: https://github.com/TriDiamond
5+
#! ---------------------------------------------------------------
6+
7+
#! ---------------------------------------------------------------
8+
#! Since version `v1.3.5` code block highlight has changed from `highlight.js` to
9+
#! `codemirror`, but the Hexo default highlight still need to be disabled to take affect.
10+
#! !! So Please make sure you disabled Hexo's default highlight setting !!
11+
#! ---------------------------------------------------------------
512
#! Rebuild files after you changed the config:
613
#! `hexo clean && hexo g`
714
#! ---------------------------------------------------------------
@@ -13,7 +20,7 @@
1320
#! ---------------------------------------------------------------
1421

1522
# Theme version
16-
version:"1.3.4"
23+
version:"1.3.5"
1724

1825
# ---------------------------------------------------------------
1926
# Theme default settings
@@ -139,3 +146,10 @@ busuanzi:
139146
sharejs:
140147
enable:true
141148
disabled:'facebook,douban,linkedin,diandian,tencent,google'
149+
150+
# Use codemirror instead of highlight js for better colors
151+
# if you want more language support check the modes list at official website
152+
# modes see: https://codemirror.net/mode/
153+
# see https://codemirror.net/
154+
codemirror:
155+
modes:['javascript', 'css', 'xml', 'htmlmixed', 'clike', 'php', 'shell', 'python']

‎layout/_partial/head.ejs‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,11 @@ var description = '';
3535
<%if (theme.favicon){%><link rel="icon" href="<%- url_for(theme.favicon) %>"><% }%>
3636
<linkhref="/font/Rubik-Bold-kern-latin.woff2"as="font"type="font/woff2"crossorigin="">
3737
<linkhref="/font/Rubik-Regular-kern-latin.woff2"as="font"type="font/woff2"crossorigin="">
38-
<%-css(['//at.alicdn.com/t/font_1429596_nuy6s3evgdk.css'])%>
38+
<%-css(['//at.alicdn.com/t/font_1429596_xjbfxy4nzcj.css'])%>
3939
<%-css(['//cdn.bootcss.com/animate.css/3.7.2/animate.min.css'])%>
4040
<%-css(['//cdnjs.cloudflare.com/ajax/libs/social-share.js/1.0.16/css/share.min.css'])%>
41+
<%-css(['//cdn.bootcss.com/codemirror/5.48.4/codemirror.min.css'])%>
42+
<%-css(['//cdn.bootcss.com/codemirror/5.48.4/theme/dracula.css'])%>
4143
<%-css(['css/obsidian.css'])%>
4244
<%-css(['css/ball-atom.min.css'])%>
4345
</head>

‎layout/_partial/post/article.ejs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
<divclass="screen-gradient-content-inside">
6666
<divclass="bold-underline-links screen-gradient-sponsor">
6767
<p>
68-
<span><%-page.abstract||''%></span>
68+
<spanclass="animated fadeIn delay-1s"><%-page.abstract||''%></span>
6969
</p>
7070
</div>
7171
</div>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp