Skip to content

Commit f951075

Browse files
committed
A better way to fix #1733
1 parent a67838e commit f951075

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

_config.yml

+7-7
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,10 @@ index_with_subtitle: false
4545
# When running the site in a subdirectory (e.g. domain.tld/blog), remove the leading slash (/archives -> archives)
4646
menu:
4747
home: /
48-
#categories: /categories
49-
#about: /about
50-
archives: /archives
51-
tags: /tags
48+
#categories: /categories/
49+
#about: /about/
50+
archives: /archives/
51+
tags: /tags/
5252
#sitemap: /sitemap.xml
5353
#commonweal: /404.html
5454

@@ -173,7 +173,7 @@ toc:
173173

174174
# If true, all words will placed on next lines if header width longer then sidebar width.
175175
wrap: false
176-
176+
177177

178178
# Creative Commons 4.0 International License.
179179
# http://creativecommons.org/
@@ -405,11 +405,11 @@ vkontakte_api:
405405

406406
# Star rating support to each article.
407407
# To get your ID visit https://widgetpack.com
408-
rating:
408+
rating:
409409
enable: false
410410
id: #<app_id>
411411
color: fc6423
412-
412+
413413

414414
# Show number of visitors to each article.
415415
# You can visit https://leancloud.cn get AppID and AppKey.

source/js/src/utils.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ NexT.utils = NexT.$u = {
165165
addActiveClassToMenuItem: function () {
166166
var path = window.location.pathname;
167167
path = path === '/' ? path : path.substring(0, path.length - 1);
168-
$('.menu-item a[href="' + path + '"]').parent().addClass('menu-item-active');
168+
$('.menu-item a[href^="' + path + '"]:first').parent().addClass('menu-item-active');
169169
},
170170

171171
hasMobileUA: function () {

0 commit comments

Comments
 (0)