Feat/pagefind search (#56)

* feat: pagefind search engine

* fix: search now works

* fixed layout

---------

Co-authored-by: hugo <hugoms@me.com>
This commit is contained in:
Georg Bauer
2026-03-15 11:44:33 +01:00
committed by GitHub
parent f03b087c13
commit 1e7d60e63e
19 changed files with 561 additions and 42 deletions

View File

@@ -1074,7 +1074,7 @@ describe('PreviewServer', () => {
const mainIndex = html.indexOf('<main>');
const h1Index = html.indexOf('<h1>Explicit Single Post Title</h1>');
const articleIndex = html.indexOf('<article class="single-post" data-template="single-post">');
const articleIndex = html.indexOf('<article class="single-post" data-template="single-post" data-pagefind-body>');
expect(mainIndex).toBeGreaterThan(-1);
expect(h1Index).toBeGreaterThan(mainIndex);
expect(articleIndex).toBeGreaterThan(mainIndex);