Update 2 files

- /_layouts/post.html
- /links.md
This commit is contained in:
mayx 2025-06-19 03:06:41 +00:00
parent dba69d3ceb
commit 00ed1a9b50
2 changed files with 46 additions and 42 deletions

View File

@ -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'))

View File

@ -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]-->