Skip to content
This repository has been archived by the owner on Jun 4, 2022. It is now read-only.

Commit

Permalink
Merge pull request #93 from novate/master
Browse files Browse the repository at this point in the history
'indexing: false' feature support
  • Loading branch information
ppoffice committed Mar 29, 2019
2 parents 5c32bf4 + a5c071e commit 177aeaf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/i18n.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ module.exports = function (hexo) {
function postFilter(language) {
return function (post) {
let lang = getPageLanguage(post);
return lang === language || (isDefaultLanguage(language) && !lang);
return (lang === language || (isDefaultLanguage(language) && !lang)) && (post.indexing !== false);
}
}

Expand Down

0 comments on commit 177aeaf

Please sign in to comment.