Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
xaoxuu committed Dec 24, 2018
1 parent 9767392 commit 454bcbe
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -155,4 +155,4 @@ less:
compress: true

# 主题的CDN地址
themecdn: https://cdn.jsdelivr.net/gh/xaoxuu/[email protected].26/
themecdn: https://cdn.jsdelivr.net/gh/xaoxuu/[email protected].27/
5 changes: 5 additions & 0 deletions source/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,11 @@ var customSearch;
if (idname.length == 0) {
idname = "home";
}
var page = idname.match(/page\d{0,}$/g);
if (page) {
page = page[0];
idname = idname.split(page)[0];
}
$active_link = $('#' + idname, $headerMenu);
setUnderline($active_link);
}
Expand Down

0 comments on commit 454bcbe

Please sign in to comment.