fix(vuepress-theme-reco): ssr-related issues
This commit is contained in:
parent
bbdddcc02e
commit
f84750b17a
@ -13,8 +13,8 @@
|
||||
<a>
|
||||
<span v-if="$themeConfig.author || $site.title">{{ $themeConfig.author || $site.title }}</span>
|
||||
|
||||
<span v-if="$themeConfig.startYear && $themeConfig.startYear != year">{{ $themeConfig.startYear }} - </span>
|
||||
{{ year }}
|
||||
<span v-if="$themeConfig.startYear && $themeConfig.startYear != (new Date().getFullYear())">{{ $themeConfig.startYear }} - </span>
|
||||
{{ new Date().getFullYear() }}
|
||||
</a>
|
||||
</span>
|
||||
<span v-show="$themeConfig.valineConfig !== undefined">
|
||||
@ -35,11 +35,6 @@ export default {
|
||||
return {
|
||||
version
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
year () {
|
||||
return new Date().getFullYear()
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
@ -22,7 +22,7 @@
|
||||
'max-width': linksWrapMaxWidth + 'px'
|
||||
} : {}">
|
||||
|
||||
<Mode v-show="$themeConfig.modePicker !== false" />
|
||||
<Mode v-if="$themeConfig.modePicker !== false" />
|
||||
<AlgoliaSearchBox
|
||||
v-if="isAlgoliaSearch"
|
||||
:options="algolia"/>
|
||||
|
Loading…
Reference in New Issue
Block a user