Merge pull request #195 from crawt/master

Filter picture
This commit is contained in:
cinwell.li 2017-06-18 02:19:14 +08:00 committed by GitHub
commit 25e09dfe07

View file

@ -87,6 +87,8 @@ function search (keywords) {
var postTitle = post.title && post.title.trim();
var postContent = post.body && post.body.trim();
var postUrl = post.slug || '';
postContent = postContent.replace(/!\[.*\]\((.+)\)/g,'');
if (postTitle && postContent) {
keywords.forEach(function (keyword, i) {