diff --git a/public/links.yml b/public/links.yml index b02c363..42266b1 100644 --- a/public/links.yml +++ b/public/links.yml @@ -3,9 +3,18 @@ - avatar: "https://images.kisechan.space/icon.jpg" title: "Kisechan's Blog" description: "Kisechan 的博客" + url: "https://blog.kisechan.space" - avatar: "https://example.com/avatar.png" - title: "技术博客" - description: "这是一个技术博客" + title: "个人博客" + description: "这是一个个人博客" + url: "https://example.com/personal-blog" +- category: "友情链接" + links: - avatar: "https://example.com/avatar.png" - title: "技术博客" - description: "这是一个技术博客" \ No newline at end of file + title: "友情链接1" + description: "这是一个友情链接" + url: "https://example.com/friend-link-1" + - avatar: "https://example.com/avatar.png" + title: "友情链接2" + description: "这是一个友情链接" + url: "https://example.com/friend-link-2" \ No newline at end of file diff --git a/src/views/LinksView.vue b/src/views/LinksView.vue index a0f338d..4ec572a 100644 --- a/src/views/LinksView.vue +++ b/src/views/LinksView.vue @@ -17,6 +17,7 @@ @mouseenter="hoverEffect(`${categoryIndex}-${linkIndex}`)" @mouseleave="resetEffect" :style="cardStyle(`${categoryIndex}-${linkIndex}`)" + @click="openLink(link.url)" >