site: menu show tag when front-matter has tag prop (#7053)

pull/7082/head
Konv Suu 1 year ago committed by GitHub
parent 9bdf882517
commit 242982301d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -48,6 +48,7 @@
<span>{{ isZhCN ? n.title : n.enTitle || n.title }}</span>
<span v-if="isZhCN" class="chinese">{{ n.subtitle }}</span>
</router-link>
<a-tag v-if="n.tag" color="green" style="margin-left: auto">{{ n.tag }}</a-tag>
</a-menu-item>
</template>
</a-menu-item-group>

@ -89,6 +89,11 @@ a {
padding-right: 40px !important;
padding-left: 16px !important;
}
.ant-menu-title-content {
display: flex;
align-items: center;
}
}
// Nest Category > Type > Article

Loading…
Cancel
Save