diff options
Diffstat (limited to '_layouts')
-rw-r--r-- | _layouts/default.html | 2 | ||||
-rw-r--r-- | _layouts/post.html | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/_layouts/default.html b/_layouts/default.html index ff80871..509ef6a 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -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); }); diff --git a/_layouts/post.html b/_layouts/post.html index c48fc2c..6cf9422 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -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 %} |