Filter picture
use regular filter picturn in search
This commit is contained in:
parent
d469442eae
commit
a6b46a3e26
1 changed files with 2 additions and 0 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue