diff options
-rw-r--r-- | _layouts/post.html | 4 | ||||
-rw-r--r-- | assets/js/main.js | 5 |
2 files changed, 6 insertions, 3 deletions
diff --git a/_layouts/post.html b/_layouts/post.html index 95dd40d..1febea8 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -111,7 +111,7 @@ $.get(BlogAPI + "/suggest?id={{ page.url }}&update=" + lastUpdated.valueOf(), fu <div class="pagination"> {% if page.previous.url %} <span class="prev"> - <a href="{{ site.baseurl }}{{ page.previous.url }}"> + <a href="{{ page.previous.url | relative_url }}"> 上一篇:{{ page.previous.title }} </a> </span> @@ -119,7 +119,7 @@ $.get(BlogAPI + "/suggest?id={{ page.url }}&update=" + lastUpdated.valueOf(), fu <br /> {% if page.next.url %} <span class="next"> - <a href="{{ site.baseurl }}{{ page.next.url }}"> + <a href="{{ page.next.url | relative_url }}"> 下一篇:{{ page.next.title }} </a> </span> diff --git a/assets/js/main.js b/assets/js/main.js index 444e7cf..865ad43 100644 --- a/assets/js/main.js +++ b/assets/js/main.js @@ -35,7 +35,10 @@ $(function () { } if (Math.floor((new Date().getTime() - lastUpdated.getTime()) / (24 * 60 * 60 * 1000)) > 90) { - $("html")[0].style = "-webkit-filter: grayscale(100%);filter:progid:DXImageTransform.Microsoft.BasicImage(graysale=1);"; + $("html").css({ + "-webkit-filter": "grayscale(100%)", + "filter": "progid:DXImageTransform.Microsoft.BasicImage(grayscale=1)" + }) $("html")[0].innerHTML = $("html")[0].innerHTML.replace(/Mayx/g, "Ghost"); console.warn("Mayx may already be Dead"); } |