From 3bc8814217780b4f87c5242a24f0eeceb46994af Mon Sep 17 00:00:00 2001 From: brklntmhwk_dev <86272619+brklntmhwk@users.noreply.github.com> Date: Fri, 24 Jan 2025 08:13:27 +0000 Subject: [PATCH] =?UTF-8?q?fix(content):=20=F0=9F=90=9B=20fix=20textlint?= =?UTF-8?q?=20error?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/content/blog/ja/astro-with-pagefind-filtering-search.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/content/blog/ja/astro-with-pagefind-filtering-search.mdx b/src/content/blog/ja/astro-with-pagefind-filtering-search.mdx index bc25928b..cc550125 100644 --- a/src/content/blog/ja/astro-with-pagefind-filtering-search.mdx +++ b/src/content/blog/ja/astro-with-pagefind-filtering-search.mdx @@ -5,7 +5,7 @@ type: blog title: PagefindでAstroウェブサイトにフィルター検索機能を実装する~デフォルトUIには頼らずに~ publishedAt: 2025-01-23T08:57:53.655Z fmContentType: blog -updatedAt: 2025-01-24T08:01:00.276Z +updatedAt: 2025-01-24T08:13:11.986Z category: metadata: ja/categories slug: attempt @@ -399,7 +399,7 @@ export const Search: Component = (props) => { - Pagefind インスタンスが持っているフィルターのデータを取得する - 先ほど設定したフィルター群のデータが`Record>`型で手に入る -- 初期レンダリング後、要素がページにマウントされる際に、Pagefind インスタンスの初期化と同時にフィルターを Solid のシグナルへ格納する +- 初期レンダリング後、要素がページにマウントされる際、Pagefind インスタンスの初期化と同時にフィルターを Solid のシグナルへ格納する - チェックボックスでフィルターを実装し、`onChange`で現在有効なフィルターをシグナルに格納する - Solid のリソースで、検索クエリに加え、現在有効なフィルターの変更も監視する - 変更があった場合は検索クエリとフィルターで都度絞り込み検索を行い、検索結果をリソースに格納する