File tree 2 files changed +6
-3
lines changed
2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -46,9 +46,12 @@ export default {
46
46
}
47
47
return targetLang || defaultLang || { }
48
48
} ,
49
+ $siteTitle ( ) {
50
+ return this . $localeConfig . title || this . $site . title || ''
51
+ } ,
49
52
$title ( ) {
50
53
const page = this . $page
51
- const siteTitle = this . $localeConfig . title || this . $site . title || ''
54
+ const siteTitle = this . $siteTitle
52
55
const selfTitle = page . frontmatter . home ? null : (
53
56
page . frontmatter . title || // explicit title
54
57
page . title // inferred title
Original file line number Diff line number Diff line change 6
6
v-if =" $site.themeConfig.logo"
7
7
:src =" $withBase($site.themeConfig.logo)" >
8
8
<span class =" site-name"
9
- v-if =" $title "
9
+ v-if =" $siteTitle "
10
10
:class =" { 'can-hide': $site.themeConfig.logo }" >
11
- {{ $title }}
11
+ {{ $siteTitle }}
12
12
</span >
13
13
</router-link >
14
14
<div class =" links" >
You can’t perform that action at this time.
0 commit comments