search optimizations

This commit is contained in:
Denys Konovalov 2023-04-23 10:42:34 +02:00
parent fd97a1bb73
commit aa60228db2

@ -22,7 +22,8 @@
<script> <script>
window.addEventListener('DOMContentLoaded', (event) => { window.addEventListener('DOMContentLoaded', (event) => {
new PagefindUI({ element: "#search", new PagefindUI({
element: "#search",
translations: { translations: {
placeholder: "Suchen...", placeholder: "Suchen...",
zero_results: "Leider konnten keine Ergebnisse zu [SEARCH_TERM] gefunden werden", zero_results: "Leider konnten keine Ergebnisse zu [SEARCH_TERM] gefunden werden",
@ -61,15 +62,9 @@
<div id="pagefind-search" class="modal fade" data-pagefind-ignore> <div id="pagefind-search" class="modal fade" data-pagefind-ignore>
<div class="modal-dialog modal-xl modal-dialog-scrollable modal-dialog-centered" role="document"> <div class="modal-dialog modal-xl modal-dialog-scrollable modal-dialog-centered" role="document">
<div class="modal-content"> <div class="modal-content">
<div class="modal-header">
<h3 class="modal-title">Suche</h3>
<button type="button" class="btn-close" data-bs-dismiss="modal" data-pagefind-ignore></button>
</div>
<div class="modal-body"> <div class="modal-body">
<div class="content">
<div id="search"></div> <div id="search"></div>
</div> </div>
</div> </div>
</div> </div>
</div>
</div> </div>