chore: search cleanup
This commit is contained in:
parent
36f251e745
commit
4e94561713
3 changed files with 5 additions and 5 deletions
4
package-lock.json
generated
4
package-lock.json
generated
|
@ -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",
|
||||||
|
|
|
@ -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": {
|
||||||
|
|
|
@ -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"],
|
||||||
|
|
Reference in a new issue