diff --git a/_config.yml b/_config.yml index a0f9b0c..85f77a9 100755 --- a/_config.yml +++ b/_config.yml @@ -155,4 +155,4 @@ less: compress: true # 主题的CDN地址 -themecdn: https://cdn.jsdelivr.net/gh/xaoxuu/cdn-material-x@18.12.26/ +themecdn: https://cdn.jsdelivr.net/gh/xaoxuu/cdn-material-x@18.12.27/ diff --git a/source/js/app.js b/source/js/app.js index 2fac4d8..9b432c3 100755 --- a/source/js/app.js +++ b/source/js/app.js @@ -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); }