mirror of
https://github.com/Mabbs/mabbs.github.io
synced 2025-12-20 03:15:35 +01:00
Update 3 files
- /js/main.js - /_layouts/default.html - /_layouts/post.html
This commit is contained in:
parent
07a3d18350
commit
9b9efd0f60
3 changed files with 17 additions and 12 deletions
|
|
@ -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 %}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue