Browse Source

docs: prev and next buttons only show cn title (#6806)

revert-6799-fix-docs-style
Konv Suu 1 year ago committed by GitHub
parent
commit
cb0abe5fd5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 9
      site/src/layouts/PrevAndNext.vue

9
site/src/layouts/PrevAndNext.vue

@ -21,8 +21,8 @@
></path>
</svg>
</span>
<span>{{ prev.title }}</span>
<span v-if="isZhCN" class="chinese">{{ prev.subtitle }}</span>
<span v-if="isZhCN" class="chinese">{{ prev.subtitle || prev.title }}</span>
<span v-else>{{ prev.enTitle || prev.title }}</span>
</router-link>
<router-link
v-if="next"
@ -30,8 +30,8 @@
class="next-page"
:to="getLocalizedPathname(next.path, isZhCN)"
>
<span>{{ next.title }}</span>
<span v-if="isZhCN" class="chinese">{{ next.subtitle }}</span>
<span v-if="isZhCN" class="chinese">{{ next.subtitle || next.title }}</span>
<span v-else>{{ next.enTitle || next.title }}</span>
<span role="img" aria-label="right" class="anticon anticon-right footer-nav-icon-after">
<svg
viewBox="64 64 896 896"
@ -65,4 +65,3 @@ export default defineComponent({
},
});
</script>
<style lang="less" scoped></style>

Loading…
Cancel
Save