Skip to content

Commit

Permalink
fix(theme): use VPLink for links in VPDocFooter (#3248)
Browse files Browse the repository at this point in the history
  • Loading branch information
maxnowack committed Nov 23, 2023
1 parent 03e1c93 commit 479a320
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/client/theme-default/components/VPDocFooter.vue
@@ -1,7 +1,6 @@
<script setup lang="ts">
import { computed } from 'vue'
import { useData } from '../composables/data'
import { normalizeLink } from '../support/utils'
import { useEditLink } from '../composables/edit-link'
import { usePrevNext } from '../composables/prev-next'
import VPIconEdit from './icons/VPIconEdit.vue'
Expand Down Expand Up @@ -43,16 +42,16 @@ const showFooter = computed(() => {

<nav v-if="control.prev?.link || control.next?.link" class="prev-next">
<div class="pager">
<a v-if="control.prev?.link" class="pager-link prev" :href="normalizeLink(control.prev.link)">
<VPLink v-if="control.prev?.link" class="pager-link prev" :href="control.prev.link">
<span class="desc" v-html="theme.docFooter?.prev || 'Previous page'"></span>
<span class="title" v-html="control.prev.text"></span>
</a>
</VPLink>
</div>
<div class="pager">
<a v-if="control.next?.link" class="pager-link next" :href="normalizeLink(control.next.link)">
<VPLink v-if="control.next?.link" class="pager-link next" :href="control.next.link">
<span class="desc" v-html="theme.docFooter?.next || 'Next page'"></span>
<span class="title" v-html="control.next.text"></span>
</a>
</VPLink>
</div>
</nav>
</footer>
Expand Down

0 comments on commit 479a320

Please sign in to comment.