diff --git a/templates/archives.html b/templates/archives.html index 2cf06a58..7c325b6e 100644 --- a/templates/archives.html +++ b/templates/archives.html @@ -53,7 +53,7 @@ -
+ diff --git a/templates/assets/js/heo.js b/templates/assets/js/heo.js index aba709ba..48a7d40a 100644 --- a/templates/assets/js/heo.js +++ b/templates/assets/js/heo.js @@ -484,9 +484,23 @@ var heo = { , o = document.getElementById("toPageText") , n = parseInt(o.value); if (!isNaN(n) && n > 0 && "0" !== ("" + n)[0] && n <= t) { - var a, l = window.location.href.replace(/\/page\/\d$/, ""); - a = 1 === n ? l : l + (l.endsWith("/") ? "" : "/") + "page/" + n, - document.getElementById("toPageButton").href = a + var url = window.location.href; + + var photosIndexOf = url.indexOf("?group") >= 0 ? url.indexOf("?group") : -1; + if (photosIndexOf >= 0) {//图库页面 + var new_url = url.substr(0,photosIndexOf); + var group = url.substr(photosIndexOf) + var a, l = new_url.replace(/\/page\/\d$/, ""); + a = 1 === n ? l : l + (l.endsWith("/") ? "" : "/") + "page/" + n, + document.getElementById("toPageButton").href = a + group + }else{ + var a, l = url.replace(/\/page\/\d$/, ""); + a = 1 === n ? l : l + (l.endsWith("/") ? "" : "/") + "page/" + n, + document.getElementById("toPageButton").href = a + } + //首页有第一屏就跳转指定位置 + scrollToPost(); + } }, changeSayHelloText: function() { diff --git a/templates/category.html b/templates/category.html index befcf3b1..cbf6c5d0 100644 --- a/templates/category.html +++ b/templates/category.html @@ -32,85 +32,8 @@ 更多 - + +