diff --git a/docs/index.md b/docs/index.md index 3c7faece..395f1608 100644 --- a/docs/index.md +++ b/docs/index.md @@ -13,7 +13,7 @@ hero: text: What is VitePress? link: /guide/what-is-vitepress startIcon: - src: /public/vitepress-logo-mini.svg + src: /vitepress-logo-mini.svg width: 18 height: 18 endIcon: @@ -23,6 +23,7 @@ hero: - theme: alt text: GitHub link: https://github.com/vuejs/vitepress + startIcon: endIcon: image: src: /vitepress-logo-large.webp diff --git a/src/client/theme-default/components/VPButton.vue b/src/client/theme-default/components/VPButton.vue index 55d63209..b4c89a8b 100644 --- a/src/client/theme-default/components/VPButton.vue +++ b/src/client/theme-default/components/VPButton.vue @@ -39,7 +39,7 @@ const component = computed(() => { :target="props.target ?? (isExternal ? '_blank' : undefined)" :rel="props.rel ?? (isExternal ? 'noreferrer' : undefined)" > -
+ { :height="startIcon.height || 32" :width="startIcon.width || 32" /> -
-
+ +
{{ text }} -
+ { :height="endIcon.height || 32" :width="endIcon.width || 32" /> -
-
+ +