Skip to content

Commit

Permalink
fix: modify sidebar logoTitle
Browse files Browse the repository at this point in the history
  • Loading branch information
xcyeye committed Dec 12, 2021
1 parent 7f3865f commit 7d47b01
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
8 changes: 3 additions & 5 deletions Aurora-theme/lib/client/components/child/side/HomeSidebar.vue
Expand Up @@ -13,7 +13,7 @@
<img id="home-sidebar-avatar-img" :src="$withBase(getAvatar)" alt="">
</div>
<div class="home-sidebar-info-desc">
<span v-html="getLogoTitle"></span>
<span v-if="getLogoTitle !== ''" v-html="getLogoTitle"></span>
</div>
<div class="home-sidebar-info-page">
<div class="sidebar-page-common">
Expand Down Expand Up @@ -429,11 +429,9 @@ export default {
}
},
getLogoTitle() {
let logoTitle = this.themeProperty.sidebarDesc
if (logoTitle === undefined || logoTitle === null) {
logoTitle = "Aurora"
if (this.themeProperty.sidebarDesc !== undefined) {
return this.themeProperty.sidebarDesc
}
return logoTitle
},
getAvatar() {
Expand Down
2 changes: 1 addition & 1 deletion Aurora-theme/package.json
@@ -1,6 +1,6 @@
{
"name": "vuepress-theme-aurora",
"version": "1.12.0-beta.3",
"version": "1.12.0-beta.4",
"description": "A vuepress-based animation blog theme, simple, beautiful, multi-color, multiple custom functions, providing article poster sharing, talk, photo album, comment and other features 一个基于vuepress的动漫类博客主题,简洁,漂亮,多色彩,多种自定义功能,提供文章海报分享,说说,相册,评论等特色功�?",
"main": "./lib/node/index.js",
"directories": {
Expand Down

0 comments on commit 7d47b01

Please sign in to comment.