From 8983746f0ede409e2ffb68e4ed58f8b46bbf847b Mon Sep 17 00:00:00 2001 From: liyunze <50455574+liyunze-coding@users.noreply.github.com> Date: Fri, 22 Mar 2024 14:01:45 +0800 Subject: [PATCH] added pagefind for search --- .gitignore | 3 + README.md | 2 +- astro.config.mjs | 1 - package-lock.json | 125 +++++++++++++++----- package.json | 7 +- src/components/blocks/BlogPostPreview.astro | 2 +- src/components/blocks/Hero.astro | 2 +- src/components/blocks/TableOfContent.astro | 44 +++---- src/components/blocks/navBar.astro | 89 +++++++------- src/components/blocks/verticalNav.astro | 2 +- src/components/ui/SearchModal.astro | 55 +++++++++ src/layouts/BlogsLayout.astro | 10 -- src/layouts/Layout.astro | 42 ++----- src/pages/blog/index.astro | 2 +- src/pages/get-started/introduction.md | 4 +- tsconfig.json | 8 +- 16 files changed, 246 insertions(+), 152 deletions(-) create mode 100644 src/components/ui/SearchModal.astro diff --git a/.gitignore b/.gitignore index 6d4c0aa..5bb3aad 100644 --- a/.gitignore +++ b/.gitignore @@ -19,3 +19,6 @@ pnpm-debug.log* # macOS-specific files .DS_Store + +# PageFind +public/pagefind \ No newline at end of file diff --git a/README.md b/README.md index f043871..c5badcb 100644 --- a/README.md +++ b/README.md @@ -54,5 +54,5 @@ This website is deployed on Vercel, which is a