fix: search
This commit is contained in:
parent
1c1a058675
commit
054962b1d1
1 changed files with 7 additions and 5 deletions
|
@ -17,7 +17,7 @@ meta:
|
||||||
image:
|
image:
|
||||||
src: https://coryd.dev/assets/img/avatar.webp
|
src: https://coryd.dev/assets/img/avatar.webp
|
||||||
---
|
---
|
||||||
<link href="/_pagefind/pagefind-ui.css" rel="stylesheet">
|
<link href="https://coryd.dev/_pagefind/pagefind-ui.css" rel="stylesheet">
|
||||||
<style>
|
<style>
|
||||||
:root {
|
:root {
|
||||||
--pagefind-ui-font: InterVariable, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
|
--pagefind-ui-font: InterVariable, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
|
||||||
|
@ -35,9 +35,11 @@ meta:
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
<div id="search" class="search"></div>
|
<div id="search" class="search"></div>
|
||||||
<script src="/_pagefind/pagefind-ui.js" onload="new PagefindUI({ element: '#search', showImages: false });"></script>
|
<script src="https://coryd.dev/_pagefind/pagefind-ui.js" onload="new PagefindUI({ element: '#search', showImages: false });"></script>
|
||||||
<script>
|
<script>
|
||||||
document.querySelector('#search').addEventListener('focusout', (e) => {
|
if (plausible) {
|
||||||
plausible('Search', { props: { query: e.target.value }})
|
document.querySelector('#search').addEventListener('focusout', (e) => {
|
||||||
})
|
plausible('Search', { props: { query: e.target.value }})
|
||||||
|
})
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
Reference in a new issue