Skip to content

Commit

Permalink
Update insight.js
Browse files Browse the repository at this point in the history
  • Loading branch information
ppwwyyxx authored Apr 12, 2022
1 parent d721a73 commit 806eda6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/hexo/generator/insight.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ module.exports = function (hexo) {
};
const index_pages = ((this.theme.config || {}).search || {}).index_pages;
if (index_pages == false) {
site.pages = locals.pages.map(mapPost);
} else {
site.pages = [];
} else {
site.pages = locals.pages.map(mapPost);
}

return {
Expand Down

0 comments on commit 806eda6

Please sign in to comment.