From 7e065208a9ab02f3caad55975482a8a063e5c98b Mon Sep 17 00:00:00 2001 From: pengzhanbo Date: Sat, 15 Jun 2024 17:42:29 +0800 Subject: [PATCH] =?UTF-8?q?perf(theme):=20=E9=87=8D=E5=91=BD=E5=90=8D=20`a?= =?UTF-8?q?vatar`=20=E4=B8=BA=20`profile`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/.vuepress/theme.ts | 4 +- theme/src/client/components/Blog/VPBlog.vue | 6 +-- .../client/components/Blog/VPBlogAside.vue | 2 +- .../client/components/Blog/VPBlogExtract.vue | 46 +++++++++---------- .../client/components/Blog/VPBlogProfile.vue | 22 ++++----- .../client/components/Home/VPHomeProfile.vue | 10 ++-- .../src/client/components/VPEncryptGlobal.vue | 10 ++-- theme/src/node/config/resolveThemeData.ts | 12 ++++- theme/src/node/plugins/getPlugins.ts | 2 +- .../plugins/resolveAutoFrontmatterOptions.ts | 4 +- theme/src/shared/options/locale.ts | 24 ++++++++-- 11 files changed, 83 insertions(+), 59 deletions(-) diff --git a/docs/.vuepress/theme.ts b/docs/.vuepress/theme.ts index 18a84dcb..c1592c5c 100644 --- a/docs/.vuepress/theme.ts +++ b/docs/.vuepress/theme.ts @@ -10,8 +10,8 @@ export const theme: Theme = themePlume({ docsRepo: 'https://github.com/pengzhanbo/vuepress-theme-plume', docsDir: 'docs', - avatar: { - url: '/plume.png', + profile: { + avatar: '/plume.png', name: 'Plume Theme', description: 'The Theme for Vuepress 2.0', location: 'GuangZhou, China', diff --git a/theme/src/client/components/Blog/VPBlog.vue b/theme/src/client/components/Blog/VPBlog.vue index e6fdaadd..922adf6b 100644 --- a/theme/src/client/components/Blog/VPBlog.vue +++ b/theme/src/client/components/Blog/VPBlog.vue @@ -29,8 +29,8 @@ const type = computed(() => {