mirror of
https://github.com/Mabbs/mabbs.github.io
synced 2025-09-10 12:25:24 +02:00
Update 3 files
- /js/main.js - /_layouts/default.html - /_layouts/post.html
This commit is contained in:
@@ -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);
|
||||
});
|
||||
|
@@ -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 %}
|
||||
|
Reference in New Issue
Block a user