Skip to content

Commit

Permalink
Annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
tangly1024 committed Jan 31, 2024
1 parent f5a710c commit ea859a6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions themes/nav/components/BlogPostCard.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ const BlogPostCard = ({ post, className }) => {
</div>
</Link>
)

// 检查连接是否是外链
function sliceUrlFromHttp(str) {
// 检查字符串是否包含http
if (str.includes('http')) {
Expand Down

0 comments on commit ea859a6

Please sign in to comment.