Skip to content

Commit

Permalink
fix: main author not able to load in home page
Browse files Browse the repository at this point in the history
  • Loading branch information
bennyxguo committed Jul 17, 2023
1 parent 75e99da commit 667e1df
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/views/Home.vue
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
</div>
<div>
<Sidebar>
<Profile :author="mainAuthor" />
<Profile author="blog-author" />
<RecentComment v-if="recentCommentEnable" />
<TagBox />
</Sidebar>
Expand Down Expand Up @@ -226,10 +226,6 @@ export default defineComponent({
}
return categoryStore.categories
}),
mainAuthor: computed(() => {
let author = appStore.themeConfig.site.author.toLocaleLowerCase()
return author.replace(/[\s]+/g, '-')
}),
recentCommentEnable: computed(() => {
return (
(appStore.themeConfig.plugins.gitalk.enable &&
Expand Down

0 comments on commit 667e1df

Please sign in to comment.