Skip to content

Commit 9bc4330

Browse files
luminrkiaking
andauthored
fix(theme): edit link gets hidden when a page don't have siblings (#751)
Co-authored-by: Kia Ishii <kia.king.08@gmail.com>
1 parent 75c9d80 commit 9bc4330

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/client/theme-default/components/VPDocFooter.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const hasLastUpdated = computed(() => {
1919
</script>
2020

2121
<template>
22-
<footer v-if="control.prev || control.next" class="VPDocFooter">
22+
<footer class="VPDocFooter">
2323
<div class="edit-info">
2424
<div v-if="theme.editLink && frontmatter.editLink !== false" class="edit-link">
2525
<VPLink class="edit-link-button" :href="editLink.url" :no-icon="true">
@@ -33,7 +33,7 @@ const hasLastUpdated = computed(() => {
3333
</div>
3434
</div>
3535

36-
<div class="prev-next">
36+
<div v-if="control.prev || control.next" class="prev-next">
3737
<div class="pager">
3838
<a v-if="control.prev" class="pager-link prev" :href="normalizeLink(control.prev.link)">
3939
<span class="desc">Previous page</span>

0 commit comments

Comments
 (0)