fix(theme): move doc-footer-before slot into the footer

close #2082
pull/2104/head
Evan You 2 years ago
parent 5f3aac95c5
commit b0160bc261

@ -43,8 +43,9 @@ const pageName = computed(() =>
<main class="main"> <main class="main">
<Content class="vp-doc" :class="pageName" /> <Content class="vp-doc" :class="pageName" />
</main> </main>
<slot name="doc-footer-before" /> <VPDocFooter>
<VPDocFooter /> <template #doc-footer-before><slot name="doc-footer-before" /></template>
</VPDocFooter>
<slot name="doc-after" /> <slot name="doc-after" />
</div> </div>
</div> </div>

@ -26,6 +26,8 @@ const showFooter = computed(() => {
<template> <template>
<footer v-if="showFooter" class="VPDocFooter"> <footer v-if="showFooter" class="VPDocFooter">
<slot name="doc-footer-before" />
<div v-if="hasEditLink || hasLastUpdated" class="edit-info"> <div v-if="hasEditLink || hasLastUpdated" class="edit-info">
<div v-if="hasEditLink" class="edit-link"> <div v-if="hasEditLink" 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">

Loading…
Cancel
Save