mirror of
https://github.com/Mabbs/mabbs.github.io
synced 2025-09-19 03:55:25 +02:00
Update 2 files
- /_layouts/post.html - /links.md
This commit is contained in:
parent
dba69d3ceb
commit
00ed1a9b50
2 changed files with 46 additions and 42 deletions
|
@ -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'))
|
||||
|
|
2
links.md
2
links.md
|
@ -29,4 +29,6 @@ tags: [links]
|
|||
头像:<https://avatars0.githubusercontent.com/u/17966333>
|
||||
Logo:<https://mabbs.github.io/favicon.ico>
|
||||
|
||||
<!--[if !IE]> -->
|
||||
<script src="/assets/js/rss-feed-preview.js"></script>
|
||||
<!-- <![endif]-->
|
Loading…
Add table
Reference in a new issue