Skip to content

Commit 454bcbe

Browse files
committed
update
1 parent 9767392 commit 454bcbe

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

_config.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -155,4 +155,4 @@ less:
155155
compress: true
156156

157157
# 主题的CDN地址
158-
themecdn: https://cdn.jsdelivr.net/gh/xaoxuu/[email protected].26/
158+
themecdn: https://cdn.jsdelivr.net/gh/xaoxuu/[email protected].27/

source/js/app.js

+5
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,11 @@ var customSearch;
6363
if (idname.length == 0) {
6464
idname = "home";
6565
}
66+
var page = idname.match(/page\d{0,}$/g);
67+
if (page) {
68+
page = page[0];
69+
idname = idname.split(page)[0];
70+
}
6671
$active_link = $('#' + idname, $headerMenu);
6772
setUnderline($active_link);
6873
}

0 commit comments

Comments
 (0)