소스 검색

Fix search using incorrect element id

Signed-off-by: hossainemruz <hossainemruz@gmail.com>
hossainemruz 1 년 전
부모
커밋
678d955044
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      assets/scripts/pages/search.js
  2. 1 1
      assets/styles/layouts/list.scss

+ 1 - 1
assets/scripts/pages/search.js

@@ -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 - 1
assets/styles/layouts/list.scss

@@ -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;