diff --git a/quartz/components/scripts/search.inline.ts b/quartz/components/scripts/search.inline.ts index ce1a28329..df21f6b35 100644 --- a/quartz/components/scripts/search.inline.ts +++ b/quartz/components/scripts/search.inline.ts @@ -239,10 +239,10 @@ document.addEventListener("nav", async (e: unknown) => { removeAllChildren(results) if (finalResults.length === 0) { - results.innerHTML = `` + ` } else { results.append(...finalResults.map(resultToHTML)) }