Skip to content

Commit cb0abe5

Browse files
authored
docs: prev and next buttons only show cn title (#6806)
1 parent ed87500 commit cb0abe5

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

site/src/layouts/PrevAndNext.vue

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,17 @@
2121
></path>
2222
</svg>
2323
</span>
24-
<span>{{ prev.title }}</span>
25-
<span v-if="isZhCN" class="chinese">{{ prev.subtitle }}</span>
24+
<span v-if="isZhCN" class="chinese">{{ prev.subtitle || prev.title }}</span>
25+
<span v-else>{{ prev.enTitle || prev.title }}</span>
2626
</router-link>
2727
<router-link
2828
v-if="next"
2929
key="next"
3030
class="next-page"
3131
:to="getLocalizedPathname(next.path, isZhCN)"
3232
>
33-
<span>{{ next.title }}</span>
34-
<span v-if="isZhCN" class="chinese">{{ next.subtitle }}</span>
33+
<span v-if="isZhCN" class="chinese">{{ next.subtitle || next.title }}</span>
34+
<span v-else>{{ next.enTitle || next.title }}</span>
3535
<span role="img" aria-label="right" class="anticon anticon-right footer-nav-icon-after">
3636
<svg
3737
viewBox="64 64 896 896"
@@ -65,4 +65,3 @@ export default defineComponent({
6565
},
6666
});
6767
</script>
68-
<style lang="less" scoped></style>

0 commit comments

Comments
 (0)