docs: prev and next buttons only show cn title (#6806)
parent
ed87500e77
commit
cb0abe5fd5
|
@ -21,8 +21,8 @@
|
||||||
></path>
|
></path>
|
||||||
</svg>
|
</svg>
|
||||||
</span>
|
</span>
|
||||||
<span>{{ prev.title }}</span>
|
<span v-if="isZhCN" class="chinese">{{ prev.subtitle || prev.title }}</span>
|
||||||
<span v-if="isZhCN" class="chinese">{{ prev.subtitle }}</span>
|
<span v-else>{{ prev.enTitle || prev.title }}</span>
|
||||||
</router-link>
|
</router-link>
|
||||||
<router-link
|
<router-link
|
||||||
v-if="next"
|
v-if="next"
|
||||||
|
@ -30,8 +30,8 @@
|
||||||
class="next-page"
|
class="next-page"
|
||||||
:to="getLocalizedPathname(next.path, isZhCN)"
|
:to="getLocalizedPathname(next.path, isZhCN)"
|
||||||
>
|
>
|
||||||
<span>{{ next.title }}</span>
|
<span v-if="isZhCN" class="chinese">{{ next.subtitle || next.title }}</span>
|
||||||
<span v-if="isZhCN" class="chinese">{{ next.subtitle }}</span>
|
<span v-else>{{ next.enTitle || next.title }}</span>
|
||||||
<span role="img" aria-label="right" class="anticon anticon-right footer-nav-icon-after">
|
<span role="img" aria-label="right" class="anticon anticon-right footer-nav-icon-after">
|
||||||
<svg
|
<svg
|
||||||
viewBox="64 64 896 896"
|
viewBox="64 64 896 896"
|
||||||
|
@ -65,4 +65,3 @@ export default defineComponent({
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
<style lang="less" scoped></style>
|
|
||||||
|
|
Loading…
Reference in New Issue