mirror of
https://github.com/Mabbs/mabbs.github.io
synced 2025-07-19 17:32:03 +00:00
Update 2 files
- /_layouts/post.html - /links.md
This commit is contained in:
parent
dba69d3ceb
commit
00ed1a9b50
@ -103,7 +103,9 @@ $.get(BlogAPI + "/suggest?id={{ page.url }}&update=" + lastUpdated.valueOf(), fu
|
||||
if (item) {
|
||||
var link = $('<a href="' + item.url + '">' + item.title + '</a>');
|
||||
var contentPreview = item.content.replace(/<[^>]+>/g, "").substring(0, 100);
|
||||
|
||||
if (item.content.length > 100) {
|
||||
contentPreview += "……";
|
||||
}
|
||||
link.hover(
|
||||
function(e) {
|
||||
tooltip.text($(this).data('content'))
|
||||
|
Loading…
x
Reference in New Issue
Block a user