Fix search using incorrect element id
Signed-off-by: hossainemruz <hossainemruz@gmail.com>
This commit is contained in:
parent
55560f40bd
commit
678d955044
2 changed files with 2 additions and 2 deletions
|
@ -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')
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue