docs: update site subtitle (#10267)

This commit is contained in:
neverland 2022-02-08 15:16:03 +08:00 committed by GitHub
parent 8937f76d75
commit 506e2a9030
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 24 additions and 13 deletions

View File

@ -4,7 +4,10 @@
<div class="van-doc-header__top">
<a class="van-doc-header__logo">
<img :src="config.logo" />
<span>{{ config.title }}</span>
<span class="van-doc-header__title">{{ config.title }}</span>
<span v-if="config.subtitle" class="van-doc-header__subtitle">
{{ config.subtitle }}
</span>
</a>
<ul class="van-doc-header__top-nav">
@ -241,21 +244,27 @@ export default {
&__logo {
display: block;
img,
span {
display: inline-block;
vertical-align: middle;
}
img {
display: inline-block;
width: 28px;
margin-right: 12px;
vertical-align: middle;
}
}
span {
color: #fff;
font-size: 22px;
}
&__title {
display: inline-block;
color: #fff;
font-size: 22px;
vertical-align: middle;
}
&__subtitle {
display: inline-block;
color: #999;
margin-left: 8px;
vertical-align: -4px;
font-size: 13px;
}
&__link {

View File

@ -27,7 +27,8 @@ export default {
},
locales: {
'zh-CN': {
title: 'Vant',
title: 'Vant 3',
subtitle: '(适用于 Vue 3',
description: '轻量、可靠的移动端组件库',
logo: 'https://img.yzcdn.cn/vant/logo.png',
langLabel: '中',
@ -473,7 +474,8 @@ export default {
],
},
'en-US': {
title: 'Vant',
title: 'Vant 3',
subtitle: ' (for Vue 3)',
description: 'Mobile UI Components built on Vue',
logo: 'https://img.yzcdn.cn/vant/logo.png',
langLabel: 'EN',