This commit is contained in:
Van
2019-03-22 18:53:35 +08:00
parent 3ca8f083f2
commit 60a8e6df33
7 changed files with 636 additions and 575 deletions

View File

@@ -206,12 +206,15 @@ var timeline = {
path = "/articles/";
if ($("#tag").length === 1) {
var pathnames = location.pathname.split("/");
path = "/articles/tags/" + pathnames[pathnames.length - 1] + "/";
path = "/articles/tags/" + pathnames[pathnames.length - 1];
} else if ($("#author").length === 1) {
var pathnames = location.pathname.split("/");
path = "/articles/authors/" + pathnames[pathnames.length - 1] + "/";
path = "/articles/authors/" + pathnames[pathnames.length - 1];
} else if ($("#category").length === 1) {
var pathnames = location.pathname.split("/");
path = "/articles/category/" + pathnames[pathnames.length - 1];
} else if (archive) {
path = "/articles/archives/" + archive + "/";
path = "/articles/archives/" + archive;
}
$.ajax({
url: Label.servePath + path + '?p=' + currentPage,