From cd29bdab6e7300c6024b262838239fc8fc49761f Mon Sep 17 00:00:00 2001 From: Ivan Li Date: Mon, 7 Oct 2024 06:27:44 +0800 Subject: Fix Path Error for pagefind in package_abridge.js (#209) * fix(build): correct path for pagefind file operations Adjust file paths in package_abridge.js * fix: auto creates the `static/js` directory.--- config.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'config.toml') diff --git a/config.toml b/config.toml index 66395f3..ddcb797 100644 --- a/config.toml +++ b/config.toml @@ -25,7 +25,7 @@ taxonomies = [ [search] # Options specific to elasticlunr search. # index format can be: elasticlunr_json or elasticlunr_javascript or fuse_json -index_format = "elasticlunr_json" +index_format = "fuse_json" include_title = true # include title of page/section in index include_description = true # include description of page/section in index include_content = true # include rendered content of page/section in index @@ -221,7 +221,7 @@ js_prestyle = true # used to preload: FontAwesome, Katex, external Google Fonts js_switcher = true # The button that allows manually changing between light/dark mode. js_switcher_default = "dark" # default nojs switcher mode: dark, light (make sure to also set $switcherDefault in abridge.scss) -search_library = "elasticlunr" +search_library = "pagefind" stylesheets = ["abridge.css"] webmanifest = "manifest.min.json" # Required for PWAs -- cgit v1.3.1