summary refs log tree commit diff
path: root/_layouts
diff options
context:
space:
mode:
authormayx2024-09-30 13:59:21 +0000
committermayx2024-09-30 13:59:21 +0000
commit9b9efd0f601b037f9fd0e90b969db9e2140d4a90 (patch)
tree648841accd00cd9c7d95b2b898a135cadb78e022 /_layouts
parent07a3d1835078730be5c6223a555c7c83c9306958 (diff)
Update 3 files
- /js/main.js
- /_layouts/default.html
- /_layouts/post.html
Diffstat (limited to '_layouts')
-rw-r--r--_layouts/default.html2
-rw-r--r--_layouts/post.html1
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 %}