summary refs log tree commit diff
path: root/_layouts/post.html
diff options
context:
space:
mode:
authormayx2025-06-19 08:51:38 +0000
committermayx2025-06-19 08:51:38 +0000
commitd10e960a8d6d1b7dd122e713fa53fa190ce8498c (patch)
treec52e760dd39688275e22fb8c4a462aa79d064cd8 /_layouts/post.html
parent00ed1a9b506eb8bdbdfd5e2d6eb925ca492ef8bb (diff)
Update 2 files
- /assets/js/main_new.js
- /_layouts/post.html
Diffstat (limited to '_layouts/post.html')
-rw-r--r--_layouts/post.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/_layouts/post.html b/_layouts/post.html
index d598c2f..4769a36 100644
--- a/_layouts/post.html
+++ b/_layouts/post.html
@@ -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 += "……";
           }