소스 검색

fix: insight search plugin site root issue

ppoffice 9 년 전
부모
커밋
c3cf7c52e9
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      layout/search/insight.ejs

+ 1 - 1
layout/search/insight.ejs

@@ -49,7 +49,7 @@
                     sectionTitle = type == 'POSTS' ? '<%= __("insight.posts") %>' : '<%= __("insight.pages") %>';
                     sectionTitle = type == 'POSTS' ? '<%= __("insight.posts") %>' : '<%= __("insight.pages") %>';
                     $searchItems = array.map(function (item) {
                     $searchItems = array.map(function (item) {
                         // Use config.root instead of permalink to fix url issue
                         // Use config.root instead of permalink to fix url issue
-                        return searchItem('file', item.title, null, item.text.slice(0, 150), <%= config.root %> + item.path);
+                        return searchItem('file', item.title, null, item.text.slice(0, 150), '<%= config.root %>' + item.path);
                     });
                     });
                     break;
                     break;
                 case 'CATEGORIES':
                 case 'CATEGORIES':