franca-theme-blog/templates/components/search.j2

16 lines
469 B
Django/Jinja

<div id="search"></div>
<link href="/_pagefind/pagefind-ui.css" rel="stylesheet">
<script src="/_pagefind/pagefind-ui.js" type="text/javascript"></script>
<script>
window.addEventListener('DOMContentLoaded', (event) => {
new PagefindUI(
{
element: "#search",
translations: {
"placeholder": "",
"clear_search": ""
}
}
);
});
</script>