hexo-theme-next
Advanced tools
Comparing version 6.0.5 to 6.0.6
@@ -12,5 +12,5 @@ <!-- ATTENTION! | ||
<!-- Check all with [x] (把 [ ] 换成 [X] 来选择) --> | ||
- [] Yes, I was on [Hexo Docs page](https://hexo.io/docs/), especially on [Templates](https://hexo.io/docs/templates.html), [Variables](https://hexo.io/docs/variables.html), [Helpers](https://hexo.io/docs/helpers.html) and [Troubleshooting](https://hexo.io/docs/troubleshooting.html). | ||
- [] Yes, I was on [NexT Documentation Site](http://theme-next.org/docs/). | ||
- [] And yes, I already searched for current [issues](https://github.com/theme-next/hexo-theme-next/issues?utf8=%E2%9C%93&q=is%3Aissue) and this is not help to me. | ||
- [ ] Yes, I was on [Hexo Docs page](https://hexo.io/docs/), especially on [Templates](https://hexo.io/docs/templates.html), [Variables](https://hexo.io/docs/variables.html), [Helpers](https://hexo.io/docs/helpers.html) and [Troubleshooting](https://hexo.io/docs/troubleshooting.html). | ||
- [ ] Yes, I was on [NexT Documentation Site](http://theme-next.org/docs/). | ||
- [ ] And yes, I already searched for current [issues](https://github.com/theme-next/hexo-theme-next/issues?utf8=%E2%9C%93&q=is%3Aissue) and this is not help to me. | ||
@@ -63,18 +63,18 @@ *** | ||
<!-- Check needed with [x] (把 [ ] 换成 [X] 来选择) --> | ||
``` | ||
[] Latest Master branch. | ||
[] Latest Release version. | ||
[] Old version - | ||
``` | ||
- [ ] Latest Master branch | ||
- [ ] Latest Release version | ||
- [ ] Old version | ||
**NexT Scheme:** | ||
<!-- Check needed with [x] (把 [ ] 换成 [X] 来选择) --> | ||
``` | ||
[] All schemes | ||
[] Muse | ||
[] Mist | ||
[] Pisces | ||
[] Gemini | ||
``` | ||
- [ ] All schemes | ||
- [ ] Muse | ||
- [ ] Mist | ||
- [ ] Pisces | ||
- [ ] Gemini | ||
#### NexT Configuration: | ||
@@ -81,0 +81,0 @@ <!-- Paste ONLY CHANGED CONFIGURATION from NexT `_config.yml` (只粘贴NexT主题配置文件 `_config.yml` 中修改过的部分) --> |
{ | ||
"name": "theme-next", | ||
"version": "6.0.4", | ||
"version": "6.0.6", | ||
"homepage": "https://theme-next.org", | ||
@@ -5,0 +5,0 @@ "authors": [ |
@@ -67,3 +67,3 @@ <h1 align="center">Algolia Search</h1> | ||
1. In `next/_config.yml`, turn on `enable` of `algolia_search`. You can adjust the text in `labels` according to your needs. | ||
1. In `next/_config.yml`, turn on `enable` of `algolia_search`. At the same time, you need to **turn off other search plugins** like Local Search. You can also adjust the text in `labels` according to your needs. | ||
@@ -70,0 +70,0 @@ ```yml |
@@ -65,3 +65,3 @@ <div align="right">Язык: <a title="Английский" href="../../README.md">:us:</a> | ||
Если нужно обновиться с версии v5.1.x на v6.0.x, читаем [здесь][docs-update-5-1-x-url]. | ||
**Если нужно обновиться с версии v5.1.x на v6.0.x, читаем [здесь][docs-update-5-1-x-url].** | ||
@@ -104,3 +104,3 @@ ## Известные баги | ||
[hexo-image]: https://img.shields.io/badge/hexo-%3E%3D%203.0-blue.svg | ||
[hexo-image]: https://img.shields.io/badge/hexo-%3E%3D%203.3.5-blue.svg | ||
[hexo-url]: http://hexo.io | ||
@@ -107,0 +107,0 @@ |
@@ -65,3 +65,3 @@ <h1 align="center">Algolia 搜索</h1> | ||
1. 更改`主题配置文件`,找到 Algolia Search 配置部分,将 `enable` 改为 `true` 即可,根据需要你可以调整 `labels` 中的文本: | ||
1. 更改`主题配置文件`,找到 Algolia Search 配置部分,将 `enable` 改为 `true`。同时你需要**关闭**其他搜索插件,如 Local Search 等。你也可以根据需要调整 `labels` 中的文本: | ||
@@ -68,0 +68,0 @@ ```yml |
@@ -65,3 +65,3 @@ <div align="right">语言: <a title="英语" href="../../README.md">:us:</a> | ||
如果你想要从 v5.1.x 更新到 v6.0.x,阅读[这篇文档][docs-update-5-1-x-url]。 | ||
**如果你想要从 v5.1.x 更新到 v6.0.x,阅读[这篇文档][docs-update-5-1-x-url]。** | ||
@@ -104,3 +104,3 @@ ## 已知问题 | ||
[hexo-image]: https://img.shields.io/badge/hexo-%3E%3D%203.0-blue.svg | ||
[hexo-image]: https://img.shields.io/badge/hexo-%3E%3D%203.3.5-blue.svg | ||
[hexo-url]: http://hexo.io | ||
@@ -107,0 +107,0 @@ |
{ | ||
"name": "hexo-theme-next", | ||
"version": "6.0.5", | ||
"version": "6.0.6", | ||
"description": "Elegant and powerful theme for Hexo", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -53,2 +53,19 @@ <div align="right">Language: :us: | ||
### Exceptions | ||
If you use cdn for any plugins, you need to replace your cdn link. | ||
For example, you want to use `fancybox` and you configured a cdn link. Go to NexT config and see: | ||
```yml | ||
vendors: | ||
# ... | ||
# Some contents... | ||
# ... | ||
fancybox: # Set or update fancybox cdn url. | ||
fancybox_css: # Set or update fancybox cdn url. | ||
``` | ||
Instead of defining [main organization link](https://github.com/theme-next) for updates. | ||
## Update | ||
@@ -66,3 +83,3 @@ | ||
If you want to update from v5.1.x to v6.0.x, read [here][docs-update-5-1-x-url]. | ||
**If you want to update from v5.1.x to v6.0.x, read [here][docs-update-5-1-x-url].** | ||
@@ -105,3 +122,3 @@ ## Known Bugs | ||
[hexo-image]: https://img.shields.io/badge/hexo-%3E%3D%203.0-blue.svg | ||
[hexo-image]: https://img.shields.io/badge/hexo-%3E%3D%203.3.5-blue.svg | ||
[hexo-url]: http://hexo.io | ||
@@ -108,0 +125,0 @@ |
@@ -198,3 +198,3 @@ /* global NexT: true */ | ||
/** | ||
* Add `menu-item-active` class name to menu item | ||
* Add `menu-item-active` class name to menu item(s) | ||
* via comparing location.path with menu item's href. | ||
@@ -204,4 +204,16 @@ */ | ||
var path = window.location.pathname; | ||
path = path === '/' ? path : path.substring(0, path.length - 1); | ||
$('.menu-item a[href^="' + path + '"]:first').parent().addClass('menu-item-active'); | ||
if (path !== '/') { | ||
var path = path.split('/'); | ||
var partPath = ''; | ||
for (i = 0; i < path.length; i++) { | ||
if (path[i] !== '') { | ||
partPath += '/' + path[i]; | ||
$('.menu-item a[href^="' + partPath + '"]:first').parent().addClass('menu-item-active'); | ||
} | ||
} | ||
} else { | ||
//path = path === '/' ? path : path.substring(0, path.length - 1); | ||
$('.menu-item a[href^="' + path + '"]:first').parent().addClass('menu-item-active'); | ||
} | ||
}, | ||
@@ -208,0 +220,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
1563179
342
11584
139