|
|
@ -11,15 +11,17 @@ const { theme, page, frontmatter } = useData()
|
|
|
|
const editLink = useEditLink()
|
|
|
|
const editLink = useEditLink()
|
|
|
|
const control = usePrevNext()
|
|
|
|
const control = usePrevNext()
|
|
|
|
|
|
|
|
|
|
|
|
const hasEditLink = computed(() => {
|
|
|
|
const hasEditLink = computed(
|
|
|
|
return theme.value.editLink && frontmatter.value.editLink !== false
|
|
|
|
() => theme.value.editLink && frontmatter.value.editLink !== false
|
|
|
|
})
|
|
|
|
)
|
|
|
|
const hasLastUpdated = computed(() => {
|
|
|
|
const hasLastUpdated = computed(() => page.value.lastUpdated)
|
|
|
|
return page.value.lastUpdated && frontmatter.value.lastUpdated !== false
|
|
|
|
const showFooter = computed(
|
|
|
|
})
|
|
|
|
() =>
|
|
|
|
const showFooter = computed(() => {
|
|
|
|
hasEditLink.value ||
|
|
|
|
return hasEditLink.value || hasLastUpdated.value || control.value.prev || control.value.next
|
|
|
|
hasLastUpdated.value ||
|
|
|
|
})
|
|
|
|
control.value.prev ||
|
|
|
|
|
|
|
|
control.value.next
|
|
|
|
|
|
|
|
)
|
|
|
|
</script>
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
<template>
|
|
|
|
<template>
|
|
|
@ -47,14 +49,28 @@ const showFooter = computed(() => {
|
|
|
|
<span class="visually-hidden" id="doc-footer-aria-label">Pager</span>
|
|
|
|
<span class="visually-hidden" id="doc-footer-aria-label">Pager</span>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="pager">
|
|
|
|
<div class="pager">
|
|
|
|
<VPLink v-if="control.prev?.link" class="pager-link prev" :href="control.prev.link">
|
|
|
|
<VPLink
|
|
|
|
<span class="desc" v-html="theme.docFooter?.prev || 'Previous page'"></span>
|
|
|
|
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>
|
|
|
|
<span class="title" v-html="control.prev.text"></span>
|
|
|
|
</VPLink>
|
|
|
|
</VPLink>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="pager">
|
|
|
|
<div class="pager">
|
|
|
|
<VPLink v-if="control.next?.link" class="pager-link next" :href="control.next.link">
|
|
|
|
<VPLink
|
|
|
|
<span class="desc" v-html="theme.docFooter?.next || 'Next page'"></span>
|
|
|
|
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>
|
|
|
|
<span class="title" v-html="control.next.text"></span>
|
|
|
|
</VPLink>
|
|
|
|
</VPLink>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|