search: disable result highlights in page body

Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
This commit is contained in:
David Karlsson 2024-06-20 15:45:03 +02:00
parent 1ee011cae7
commit 4cc6c1d61f
3 changed files with 7 additions and 13 deletions

View File

@ -25,7 +25,7 @@
"Buildkite",
"CLI",
"CentOS-7-and-RHEL-7",
"CentOS-8-RHEL-8-and-Fedora",
"CentOS-9-stream-RHEL-8-and-Fedora",
"Circle-CI",
"Clone-with-git",
"Command-Prompt",
@ -42,7 +42,6 @@
"Entra-ID",
"Entra-ID-SAML-2.0",
"Fedora",
"For-Mac-and-Linux",
"For-Mac-with-Apple-silicon",
"For-Mac-with-Intel-chip",
"For-all-platforms",
@ -56,7 +55,7 @@
"HTTP",
"Heredocs",
"Hub",
"Hyper-V-backend-and-Windows-containers",
"Hyper-V-backend-x86_64",
"Inline",
"Install-from-the-command-line",
"Install-interactively",
@ -99,12 +98,14 @@
"Use-OpenAI",
"Using-the-CLI",
"Using-the-GUI",
"VS-Code",
"Version-4.15-4.17",
"Version-4.17-and-earlier",
"Version-4.18-and-later",
"Versions-prior-to-4.15",
"Vue",
"WSL-2-backend",
"WSL-2-backend-Arm-Beta",
"WSL-2-backend-x86_64",
"What-administrative-tasks-can-I-perform-in-Docker-Hub",
"What-are-the-key-features-of-Docker-Desktop",
"What-key-features-are-included-in-Docker-Hub",
@ -122,8 +123,6 @@
"appearance-none",
"aspect-video",
"bake-action",
"basis-1/3",
"basis-2/3",
"bg-accent-light",
"bg-amber-light",
"bg-amber-light-200",
@ -240,6 +239,7 @@
"gap-4",
"gap-6",
"gap-8",
"goat",
"grid",
"grid-cols-1",
"grid-cols-2",
@ -340,7 +340,6 @@
"no-underline",
"no-wrap",
"not-prose",
"object-cover",
"openSUSE-and-SLES",
"origin-bottom-right",
"outline",
@ -405,6 +404,7 @@
"space-x-2",
"space-y-4",
"sticky",
"svg-container",
"svg-icon",
"syntax-light",
"text-2xl",

View File

@ -73,8 +73,3 @@
}}
<script defer src="{{ $js.Permalink }}"></script>
{{ partialCached "utils/resources.html" "-" }}
{{- /* Highlight text from search results */ -}}
<script type="module">
await import('/pagefind/pagefind-highlight.js');
new PagefindHighlight({ highlightParam: "highlight" });
</script>

View File

@ -53,7 +53,6 @@ case 'k':
termSaturation: 1.4,
termSimilarity: 6.0,
},
highlightParam: "highlight",
});
pagefind.init();