diff options
author | mayx | 2025-05-11 17:14:23 +0000 |
---|---|---|
committer | mayx | 2025-05-11 17:14:23 +0000 |
commit | 824f34f25f5d83817fc6795386fb7b30c3a8f0de (patch) | |
tree | dbebe5b02aab7acefc4c4d0e543fe3e0b70c172b | |
parent | de996d9015d603cf7ddb417c2adca17cb78f707d (diff) |
Update 2 files
- /assets/js/main.js - /_layouts/post.html
-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"); } |