Fix search using incorrect element id

Signed-off-by: hossainemruz <hossainemruz@gmail.com>
This commit is contained in:
hossainemruz 2023-07-29 00:57:50 +06:00
parent 55560f40bd
commit 678d955044
2 changed files with 2 additions and 2 deletions

View file

@ -26,7 +26,7 @@ window.addEventListener('DOMContentLoaded', () => {
const searchQuery = param('keyword')
if (searchQuery) {
document.getElementById('search-query').value = searchQuery
document.getElementById('search-box').value = searchQuery
executeSearch(searchQuery)
} else {
const node = document.createElement('p')

View file

@ -1,7 +1,7 @@
// in Hugo, Page kind can be either "section" or "page".
// if it is section, then it's a page with a list of items, for example /posts
// if it is page, then it is a single page.
body.kind-section, body.kind-term {
body.kind-section, body.kind-term, body.kind-page{
.wrapper {
display: flex;
padding: 0;