Update 3 files

- /js/main.js
- /_layouts/default.html
- /_layouts/post.html
This commit is contained in:
mayx
2024-09-30 13:59:21 +00:00
parent 07a3d18350
commit 9b9efd0f60
3 changed files with 17 additions and 12 deletions

View File

@@ -31,7 +31,7 @@
var searchData = JSON.parse(localStorage.getItem(lastUpdated));
if (!searchData) {
localStorage.clear();
$.getJSON("search.json", function (data) {
$.getJSON("/search.json", function (data) {
localStorage.setItem(lastUpdated, JSON.stringify(data));
callback(data);
});

View File

@@ -80,6 +80,7 @@ layout: default
{% if page.tags %}
<small>tags: <em>{{ page.tags | join: "</em> - <em>" }}</em></small>
{% endif %}
<br />
<p id="suggest-container"><button onclick="getSuggestBlog('{{ page.url }}')">查看推荐文章</button></p>
<div class="pagination">
{% if page.previous.url %}