Skip to content

Commit

Permalink
feat: moteur de recherche basique
Browse files Browse the repository at this point in the history
  • Loading branch information
marc-bouvier committed Nov 24, 2024
1 parent a6d02bf commit 4994742
Show file tree
Hide file tree
Showing 4 changed files with 617 additions and 1 deletion.
9 changes: 9 additions & 0 deletions _includes/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,15 @@ <h1 style="margin: .25rem .5rem;"><a href="/">Baldir</a></h1>
<a href="/glossaire" role="menuitem">Glossaire</a>
<a href="/making-of" role="menuitem">Making of</a>
</nav>
<link href="/public/css/pagefind-baldir-fr-ui.css" rel="stylesheet">
<script src="/pagefind/pagefind-ui.js"></script>
<div id="search"></div>
<script>
window.addEventListener('DOMContentLoaded', (event) => {
new PagefindUI({ element: "#search", showSubResults: true });
});
</script>
<data-pagefind-body></data-pagefind-body>
</header>
<main id="skip-content">
{{content}}
Expand Down
88 changes: 88 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@
"type": "module",
"scripts": {
"start": "eleventy --serve",
"build": "eleventy",
"build": "eleventy && pagefind --site _site",
"test": "vitest"
},
"devDependencies": {
"pagefind": "^1.2.0",
"@11ty/eleventy": "^3.0.0",
"@11ty/eleventy-img": "^5.0.0",
"@11ty/eleventy-plugin-rss": "^2.0.2",
Expand Down
Loading

0 comments on commit 4994742

Please sign in to comment.