chore: search cleanup

This commit is contained in:
Cory Dransfeldt 2024-10-19 20:13:12 -07:00
parent 36f251e745
commit 4e94561713
No known key found for this signature in database
3 changed files with 5 additions and 5 deletions

4
package-lock.json generated
View file

@ -1,12 +1,12 @@
{ {
"name": "coryd.dev", "name": "coryd.dev",
"version": "1.5.12", "version": "1.5.13",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "coryd.dev", "name": "coryd.dev",
"version": "1.5.12", "version": "1.5.13",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@cdransf/api-text": "^1.5.0", "@cdransf/api-text": "^1.5.0",

View file

@ -1,6 +1,6 @@
{ {
"name": "coryd.dev", "name": "coryd.dev",
"version": "1.5.12", "version": "1.5.13",
"description": "The source for my personal site. Built using 11ty (and other tools).", "description": "The source for my personal site. Built using 11ty (and other tools).",
"type": "module", "type": "module",
"engines": { "engines": {

View file

@ -92,7 +92,7 @@ window.addEventListener("load", () => {
// search logic // search logic
(() => { (() => {
if (!MiniSearch || !document.querySelector(".search__form--input")) return; if (typeof MiniSearch === "undefined") return;
const miniSearch = new MiniSearch({ const miniSearch = new MiniSearch({
fields: ["title", "description", "tags", "type"], fields: ["title", "description", "tags", "type"],