diff --git a/package.json b/package.json index 1da63a12c..34a0d835d 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "scripts": { "dev": "astro dev", "start": "astro dev", - "build": "astro build && pagefind --site dist", + "build": "astro build", "preview": "astro preview", "astro": "astro", "type-check": "tsc --noEmit --isolatedDeclarations", @@ -37,7 +37,7 @@ "markdown-it": "^14.1.0", "mdast-util-to-string": "^4.0.0", "overlayscrollbars": "^2.11.1", - "pagefind": "^1.3.0", + "photoswipe": "^5.4.4", "reading-time": "^1.5.0", "rehype-autolink-headings": "^7.1.0", diff --git a/pagefind.yml b/pagefind.yml deleted file mode 100644 index af36ceb4a..000000000 --- a/pagefind.yml +++ /dev/null @@ -1,3 +0,0 @@ -exclude_selectors: - - "span.katex" - - "span.katex-display" diff --git a/src/components/Navbar.astro b/src/components/Navbar.astro index 2156b9707..be9cec590 100644 --- a/src/components/Navbar.astro +++ b/src/components/Navbar.astro @@ -104,16 +104,3 @@ function loadButtonScript() { loadButtonScript(); - -{import.meta.env.PROD && } diff --git a/src/components/Search.svelte b/src/components/Search.svelte index 7ba6b0f4d..701b5df3e 100644 --- a/src/components/Search.svelte +++ b/src/components/Search.svelte @@ -1,11 +1,19 @@