|
|
|
@ -7,7 +7,11 @@ const { hasSidebar } = useSidebar()
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<template>
|
|
|
|
|
<footer v-if="theme.footer && frontmatter.footer !== false" class="VPFooter" :class="{ 'has-sidebar': hasSidebar }">
|
|
|
|
|
<footer
|
|
|
|
|
v-if="theme.footer && frontmatter.footer !== false && (!hasSidebar || theme.footer.showWithSidebar)"
|
|
|
|
|
class="VPFooter"
|
|
|
|
|
:class="{ 'has-sidebar': hasSidebar }"
|
|
|
|
|
>
|
|
|
|
|
<div class="container">
|
|
|
|
|
<p v-if="theme.footer.message" class="message" v-html="theme.footer.message"></p>
|
|
|
|
|
<p v-if="theme.footer.copyright" class="copyright" v-html="theme.footer.copyright"></p>
|
|
|
|
@ -24,10 +28,6 @@ const { hasSidebar } = useSidebar()
|
|
|
|
|
background-color: var(--vp-c-bg);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.VPFooter.has-sidebar {
|
|
|
|
|
display: none;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.VPFooter :deep(a) {
|
|
|
|
|
text-decoration-line: underline;
|
|
|
|
|
text-underline-offset: 2px;
|
|
|
|
@ -50,6 +50,12 @@ const { hasSidebar } = useSidebar()
|
|
|
|
|
text-align: center;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@media (min-width: 960px) {
|
|
|
|
|
.has-sidebar .container {
|
|
|
|
|
padding-left: var(--vp-sidebar-width);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.message,
|
|
|
|
|
.copyright {
|
|
|
|
|
line-height: 24px;
|
|
|
|
|