Skip to content

Commit

Permalink
fix: init project withBase error
Browse files Browse the repository at this point in the history
  • Loading branch information
ATQQ committed Jul 11, 2024
1 parent 86db6e9 commit 439632c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions packages/theme/src/components/BlogAuthor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,11 @@ const author = computed(() =>
?? site.value.themeConfig?.blog?.author
)
const logo = computed(() =>
frontmatter.value.logo
frontmatter.value?.logo
?? frontmatter.value?.blog?.logo
?? home?.logo
?? site.value.themeConfig.logo
?? site.value?.themeConfig?.logo
?? '/logo.png'
)
const show = computed(() => author.value || logo.value)
</script>
Expand Down
3 changes: 2 additions & 1 deletion packages/theme/src/components/BlogHomeHeaderAvatar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ const logo = computed(() =>
frontmatter.value.logo
?? frontmatter.value?.blog?.logo
?? home?.logo
?? site.value.themeConfig.logo
?? site.value.themeConfig?.logo
?? '/logo.png'
)
const alwaysHide = computed(() => frontmatter.value.blog?.minScreenAvatar === false)
</script>
Expand Down

0 comments on commit 439632c

Please sign in to comment.