mirror of
https://github.com/Mabbs/mabbs.github.io
synced 2026-10-18 05:56:42 -05:00
Update 2 files
- /_layouts/post.html - /links.md
This commit is contained in:
1 parent
dba69d3ceb
commit
00ed1a9b50
2 files changed
+5
-1
No files matched your search
+3
-1
@@ -103,7 +103,9 @@ $.get(BlogAPI + "/suggest?id={{ page.url }}&update=" + lastUpdated.valueOf(), fu
|
|||||||
if (item) {
|
if (item) {
|
||||||
var link = $('<a href="' + item.url + '">' + item.title + '</a>');
|
var link = $('<a href="' + item.url + '">' + item.title + '</a>');
|
||||||
var contentPreview = item.content.replace(/<[^>]+>/g, "").substring(0, 100);
|
var contentPreview = item.content.replace(/<[^>]+>/g, "").substring(0, 100);
|
||||||
|
if (item.content.length > 100) {
|
||||||
|
contentPreview += "……";
|
||||||
|
}
|
||||||
link.hover(
|
link.hover(
|
||||||
function(e) {
|
function(e) {
|
||||||
tooltip.text($(this).data('content'))
|
tooltip.text($(this).data('content'))
|
||||||
|
|||||||
@@ -29,4 +29,6 @@ tags: [links]
|
|||||||
头像:<https://avatars0.githubusercontent.com/u/17966333>
|
头像:<https://avatars0.githubusercontent.com/u/17966333>
|
||||||
Logo:<https://mabbs.github.io/favicon.ico>
|
Logo:<https://mabbs.github.io/favicon.ico>
|
||||||
|
|
||||||
|
<!--[if !IE]> -->
|
||||||
<script src="/assets/js/rss-feed-preview.js"></script>
|
<script src="/assets/js/rss-feed-preview.js"></script>
|
||||||
|
<!-- <![endif]-->
|
||||||
Reference in new issue
Block a user