diff --git a/layouts/partials/head.html b/layouts/partials/head.html index bfabcf59..c7508c39 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -29,8 +29,7 @@ zero_results: "Leider konnten keine Ergebnisse zu [SEARCH_TERM] gefunden werden", clear_search: "Löschen" } - }); - document.getElementsByClassName("pagefind-ui__search-input")[0].autofocus=true; + }); }); diff --git a/layouts/partials/header.html b/layouts/partials/header.html index bad3accd..7a983034 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -67,7 +67,7 @@ {{ end }} {{ end }}