feat: implement post search using Pagefind (#12)

This commit is contained in:
saica.go
2024-01-24 12:28:16 +08:00
committed by GitHub
parent 31bb0d576e
commit 79ec8030cc
9 changed files with 297 additions and 61 deletions

View File

@@ -5,7 +5,7 @@
"scripts": {
"dev": "astro dev",
"start": "astro dev",
"build": "astro build",
"build": "astro build && pagefind --site dist",
"preview": "astro preview",
"astro": "astro",
"new-post": "node scripts/new-post.js",
@@ -23,6 +23,7 @@
"colorjs.io": "^0.4.5",
"mdast-util-to-string": "^4.0.0",
"overlayscrollbars": "^2.4.6",
"pagefind": "^1.0.4",
"reading-time": "^1.5.0",
"rehype-autolink-headings": "^7.1.0",
"rehype-katex": "^7.0.0",
@@ -31,7 +32,8 @@
"sharp": "^0.32.6",
"tailwindcss": "^3.3.7",
"typescript": "^5.2.2",
"valine": "^1.5.1"
"valine": "^1.5.1",
"vue": "^3.4.15"
},
"devDependencies": {
"@astrojs/ts-plugin": "^1.3.1",