Skip to content

Commit 29ae480

Browse files
committed
Fix pagefind config
1 parent c10b2f2 commit 29ae480

File tree

4 files changed

+3
-4
lines changed

4 files changed

+3
-4
lines changed

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ check:
4444

4545
build:
4646
pnpm run astro build --mode $(MODE)
47+
pnpm pagefind
4748

4849
preview: RELEASES_DIR = $(VPS_PREVIEW_PATH)/$(SAFE_BRANCH)/releases
4950
preview: TARGET = $(RELEASES_DIR)/$(TIMESTAMP)

astro.config.mjs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import remarkToc from "remark-toc";
66
import rehypeSlug from "rehype-slug";
77
import rehypeAutolinkHeadings from "rehype-autolink-headings";
88
import metaTags from "astro-meta-tags";
9-
import pagefind from "astro-pagefind";
109
import deleteUnusedImages from "astro-delete-unused-images";
1110
import { execSync } from "node:child_process";
1211
import svelte from "@astrojs/svelte";
@@ -116,7 +115,6 @@ export default defineConfig({
116115
mdx(),
117116
sitemap(),
118117
metaTags(),
119-
pagefind(),
120118
deleteUnusedImages(),
121119
svelte(),
122120
compress({

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"scripts": {
66
"dev": "astro dev",
77
"start": "astro dev",
8-
"build": "astro check && astro build && pnpm pagefind --site dist",
8+
"build": "astro check && astro build && pnpm pagefind",
99
"preview": "astro preview",
1010
"astro": "astro",
1111
"format": "prettier --write --plugin=prettier-plugin-astro ."

src/layouts/Layout.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ const externalDomain = new URL(Astro.site || "").hostname;
3636
<Header />
3737
</header>
3838

39-
<main class="main pt-28" role="main">
39+
<main data-pagefind-body class="main pt-28" role="main">
4040
<slot />
4141
</main>
4242

0 commit comments

Comments
 (0)