Update 2 files

- /assets/js/main.js
- /_layouts/post.html
master
mayx 2025-05-11 17:14:23 +00:00
parent de996d9015
commit 824f34f25f
2 changed files with 6 additions and 3 deletions

View File

@ -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>

View File

@ -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");
}