Skip to content

Commit

Permalink
Updating pagefind to 1.x.
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthewNichols committed Feb 23, 2024
1 parent 49e3865 commit e32ee59
Show file tree
Hide file tree
Showing 3 changed files with 120 additions and 71 deletions.
183 changes: 116 additions & 67 deletions package-lock.json

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

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"doc": "docs"
},
"scripts": {
"build:search-index": "npx pagefind --source _site --glob \"**/*.html\"",
"build:search-index": "npx pagefind --site _site --glob \"**/*.html\"",
"build:web": "ELEVENTY_ENV=production npx @11ty/eleventy",
"serve:web": "ELEVENTY_ENV=development npx @11ty/eleventy --serve --incremental",
"serve:web-prod": "ELEVENTY_ENV=production BROWERSYNC=off npx @11ty/eleventy --serve",
Expand Down Expand Up @@ -72,6 +72,6 @@
"uglify-js": "^3.17.4"
},
"dependencies": {
"pagefind": "^0.12.0"
"pagefind": "1.0.4"
}
}
4 changes: 2 additions & 2 deletions src/pages/search.njk
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ layout: default-page-layout.njk
pageStyleId: search
---

<link href="/_pagefind/pagefind-ui.css" rel="stylesheet">
<script src="/_pagefind/pagefind-ui.js" type="text/javascript"></script>
<link href="/pagefind/pagefind-ui.css" rel="stylesheet">
<script src="/pagefind/pagefind-ui.js" type="text/javascript"></script>

<div id="search"></div>
<script defer="true" src="/scripts/page-search.js"></script>

0 comments on commit e32ee59

Please sign in to comment.