fix(theme): edit link gets hidden when a page don't have siblings (#751)

Co-authored-by: Kia Ishii <kia.king.08@gmail.com>
pull/829/head
吕鹿鸣 2 years ago committed by GitHub
parent 75c9d809d2
commit 9bc43306a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -19,7 +19,7 @@ const hasLastUpdated = computed(() => {
</script> </script>
<template> <template>
<footer v-if="control.prev || control.next" class="VPDocFooter"> <footer class="VPDocFooter">
<div class="edit-info"> <div class="edit-info">
<div v-if="theme.editLink && frontmatter.editLink !== false" class="edit-link"> <div v-if="theme.editLink && frontmatter.editLink !== false" class="edit-link">
<VPLink class="edit-link-button" :href="editLink.url" :no-icon="true"> <VPLink class="edit-link-button" :href="editLink.url" :no-icon="true">
@ -33,7 +33,7 @@ const hasLastUpdated = computed(() => {
</div> </div>
</div> </div>
<div class="prev-next"> <div v-if="control.prev || control.next" class="prev-next">
<div class="pager"> <div class="pager">
<a v-if="control.prev" class="pager-link prev" :href="normalizeLink(control.prev.link)"> <a v-if="control.prev" class="pager-link prev" :href="normalizeLink(control.prev.link)">
<span class="desc">Previous page</span> <span class="desc">Previous page</span>

Loading…
Cancel
Save