Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

search.js 搜索时报错 #55

Closed
Shineee opened this issue Jul 14, 2016 · 2 comments
Closed

search.js 搜索时报错 #55

Shineee opened this issue Jul 14, 2016 · 2 comments

Comments

@Shineee
Copy link

Shineee commented Jul 14, 2016

loadData(function(data) {

            var result = data.filter(function(post) {
                return matcher(post, regExp);
            });

            render(result);
            Control.show();
        });

error:
Uncaught TypeError: data.filter is not a function

@yscoder
Copy link
Owner

yscoder commented Jul 14, 2016

编辑 hexo/_config.yml,添加 json-content配置,重新生成下。

@Shineee
Copy link
Author

Shineee commented Jul 14, 2016

解决

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants