From 454bcbeed147318262909d0a9e358fc5d4913382 Mon Sep 17 00:00:00 2001 From: xaoxuu Date: Mon, 24 Dec 2018 15:27:15 +0800 Subject: [PATCH] update --- _config.yml | 2 +- source/js/app.js | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) 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); }