diff --git a/src/client/theme-default/components/VPDocFooter.vue b/src/client/theme-default/components/VPDocFooter.vue index 61d2398b..0b6ff2a8 100644 --- a/src/client/theme-default/components/VPDocFooter.vue +++ b/src/client/theme-default/components/VPDocFooter.vue @@ -11,15 +11,17 @@ const { theme, page, frontmatter } = useData() const editLink = useEditLink() const control = usePrevNext() -const hasEditLink = computed(() => { - return theme.value.editLink && frontmatter.value.editLink !== false -}) -const hasLastUpdated = computed(() => { - return page.value.lastUpdated && frontmatter.value.lastUpdated !== false -}) -const showFooter = computed(() => { - return hasEditLink.value || hasLastUpdated.value || control.value.prev || control.value.next -}) +const hasEditLink = computed( + () => theme.value.editLink && frontmatter.value.editLink !== false +) +const hasLastUpdated = computed(() => page.value.lastUpdated) +const showFooter = computed( + () => + hasEditLink.value || + hasLastUpdated.value || + control.value.prev || + control.value.next +)