diff --git a/docs/friends.md b/docs/friends.md index 72edf7af..d3c62d58 100644 --- a/docs/friends.md +++ b/docs/friends.md @@ -1,7 +1,7 @@ --- pageLayout: friends title: 友情链接 -description: 这里是友情链接的描述文字 +description: 这里是友情链接的描述文字,此页面仅作为示例展示 permalink: /friends/ draft: true list: @@ -17,10 +17,33 @@ list: name: pengzhanbo link: https://github.com/pengzhanbo avatar: https://github.com/pengzhanbo.png + location: GuangZhou + organization: PengZhanBo - name: pengzhanbo link: https://github.com/pengzhanbo avatar: https://github.com/pengzhanbo.png + location: GuangZhou + organization: PengZhanBo + - + name: pengzhanbo + link: https://github.com/pengzhanbo + avatar: https://github.com/pengzhanbo.png + location: GuangZhou + organization: PengZhanBo + socials: + - + icon: github + link: https://github.com/pengzhanbo + - + icon: twitter + link: https://twitter.com/pengzhanbo + - + name: pengzhanbo + link: https://github.com/pengzhanbo + avatar: https://github.com/pengzhanbo.png + location: GuangZhou + organization: PengZhanBo socials: - icon: github @@ -50,6 +73,11 @@ list: - icon: twitter link: https://twitter.com/pengzhanbo + - + name: pengzhanbo + link: https://github.com/pengzhanbo + avatar: https://github.com/pengzhanbo.png + desc: 即使慢,驰而不息,纵会落后,纵会失败,但必须能够到达他所向的目标。 - name: pengzhanbo link: https://github.com/pengzhanbo @@ -66,11 +94,22 @@ list: name: pengzhanbo link: https://github.com/pengzhanbo avatar: https://github.com/pengzhanbo.png + location: GuangZhou + organization: PengZhanBo desc: 即使慢,驰而不息,纵会落后,纵会失败,但必须能够到达他所向的目标。 + socials: + - + icon: github + link: https://github.com/pengzhanbo + - + icon: twitter + link: https://twitter.com/pengzhanbo - name: pengzhanbo link: https://github.com/pengzhanbo avatar: https://github.com/pengzhanbo.png + location: GuangZhou + organization: PengZhanBo desc: 即使慢,驰而不息,纵会落后,纵会失败,但必须能够到达他所向的目标。 groups: - diff --git a/docs/notes/theme/config/frontmatter/friend.md b/docs/notes/theme/config/frontmatter/friend.md index 0fb46e1b..2aeae46c 100644 --- a/docs/notes/theme/config/frontmatter/friend.md +++ b/docs/notes/theme/config/frontmatter/friend.md @@ -20,7 +20,16 @@ list: name: pengzhanbo link: https://github.com/pengzhanbo avatar: https://github.com/pengzhanbo.png + location: 广州,中国 + organization: VuePress desc: 即使慢,驰而不息,纵会落后,纵会失败,但必须能够到达他所向的目标。 + socials: + - + icon: github + link: https://github.com/pengzhanbo + - + icon: twitter + link: https://twitter.com/pengzhanbo --- ``` @@ -79,6 +88,14 @@ interface FriendsItem { * 友情链接描述 */ desc?: string + /** + * 地理位置 + */ + location?: string + /** + * 组织、公司 + */ + organization?: string /** * 社交链接 diff --git a/theme/src/client/components/VPFriends.vue b/theme/src/client/components/VPFriends.vue index 2a81c32a..fee3a211 100644 --- a/theme/src/client/components/VPFriends.vue +++ b/theme/src/client/components/VPFriends.vue @@ -97,7 +97,7 @@ const groups = computed(() => matter.value.groups || []) @media (min-width: 960px) { .vp-friends { - max-width: 784px; + max-width: 864px; padding-top: 48px; } @@ -112,16 +112,6 @@ const groups = computed(() => matter.value.groups || []) } } -@media (min-width: 1440px) { - .vp-friends { - max-width: 1104px; - } - - .friends-list { - grid-template-columns: repeat(3, minmax(0, 1fr)); - } -} - .edit-link-button { display: flex; align-items: center; diff --git a/theme/src/client/components/VPFriendsGroup.vue b/theme/src/client/components/VPFriendsGroup.vue index a58c2ffd..b03640db 100644 --- a/theme/src/client/components/VPFriendsGroup.vue +++ b/theme/src/client/components/VPFriendsGroup.vue @@ -74,15 +74,4 @@ defineProps<{ padding: 0; } } - -@media (min-width: 1440px) { - .vp-friends-group { - max-width: 1104px; - } - - .friends-list { - grid-template-columns: repeat(3, minmax(0, 1fr)); - padding: 0; - } -} diff --git a/theme/src/client/components/VPFriendsItem.vue b/theme/src/client/components/VPFriendsItem.vue index 7f7978c9..309d3037 100644 --- a/theme/src/client/components/VPFriendsItem.vue +++ b/theme/src/client/components/VPFriendsItem.vue @@ -31,30 +31,25 @@ const friendStyle = computed(() => {