mirror of
https://github.com/Mabbs/mabbs.github.io
synced 2025-09-10 04:15:23 +02:00
Update 2 files
- /assets/js/main_new.js - /_layouts/post.html
This commit is contained in:
@@ -102,7 +102,7 @@ $.get(BlogAPI + "/suggest?id={{ page.url }}&update=" + lastUpdated.valueOf(), fu
|
||||
var item = searchMap[data[j].id];
|
||||
if (item) {
|
||||
var link = $('<a href="' + item.url + '">' + item.title + '</a>');
|
||||
var contentPreview = item.content.replace(/<[^>]+>/g, "").substring(0, 100);
|
||||
var contentPreview = item.content.substring(0, 100);
|
||||
if (item.content.length > 100) {
|
||||
contentPreview += "……";
|
||||
}
|
||||
|
Reference in New Issue
Block a user