Skip to content

Commit

Permalink
Restrict pagefind search to project.
Browse files Browse the repository at this point in the history
  • Loading branch information
mnlipp committed Feb 24, 2025
1 parent f236b37 commit ddab466
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions webpages/_layouts/vm-operator.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,12 @@
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<link href="../pagefind/pagefind-ui.css" rel="stylesheet">
<script src="../pagefind/pagefind-ui.js"></script>
<link href="/vm-operator/pagefind/pagefind-ui.css" rel="stylesheet">
<script src="/vm-operator/pagefind/pagefind-ui.js"></script>
<script>
window.addEventListener('DOMContentLoaded', (event) => {
new PagefindUI({ element: "#search", showSubResults: true,
bundlePath: "/vm-operator/pagefind/",
// See https://github.com/CloudCannon/pagefind/issues/530
processResult: function (result) {
if (result?.meta?.image) {
Expand Down

0 comments on commit ddab466

Please sign in to comment.