Minify algolia logo if not enabled (#514)

This commit is contained in:
Jinzhe Zeng 2022-05-21 13:58:22 -04:00 committed by GitHub
parent c7c13fdd6c
commit 250a5c851d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -112,6 +112,7 @@ hexo.extend.filter.register('after_generate', () => {
// Search
if (!theme.algolia_search.enable) {
hexo.route.remove('js/third-party/search/algolia-search.js');
hexo.route.remove('images/logo-algolia-nebula-blue-full.svg');
}
if (!theme.local_search.enable) {