From ea859a6c3c54bb3221e2871e6f61959939bfbdb5 Mon Sep 17 00:00:00 2001 From: tangly1024 Date: Wed, 31 Jan 2024 21:59:11 +0800 Subject: [PATCH] Annotation --- themes/nav/components/BlogPostCard.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/themes/nav/components/BlogPostCard.js b/themes/nav/components/BlogPostCard.js index d52ef0e6a34..cc3934e0faf 100755 --- a/themes/nav/components/BlogPostCard.js +++ b/themes/nav/components/BlogPostCard.js @@ -22,6 +22,8 @@ const BlogPostCard = ({ post, className }) => { ) + + // 检查连接是否是外链 function sliceUrlFromHttp(str) { // 检查字符串是否包含http if (str.includes('http')) {