Browse Source

Update 2 files

- /assets/js/main.js
- /_layouts/post.html
mayx 7 months ago
parent
commit
824f34f25f
2 changed files with 6 additions and 3 deletions
  1. 2 2
      _layouts/post.html
  2. 4 1
      assets/js/main.js

+ 2 - 2
_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>

+ 4 - 1
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");
     }