From 9b9efd0f601b037f9fd0e90b969db9e2140d4a90 Mon Sep 17 00:00:00 2001 From: mayx Date: Mon, 30 Sep 2024 13:59:21 +0000 Subject: Update 3 files - /js/main.js - /_layouts/default.html - /_layouts/post.html--- _layouts/default.html | 2 +- _layouts/post.html | 1 + js/main.js | 26 +++++++++++++++----------- 3 files changed, 17 insertions(+), 12 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 %} tags: {{ page.tags | join: " - " }} {% endif %} +