fix(theme): show footer message/copyright only if present (#1191)

pull/1193/head
Divyansh Singh 2 years ago committed by GitHub
parent 3714ea3463
commit da2f8d28a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -9,8 +9,8 @@ const { hasSidebar } = useSidebar()
<template> <template>
<footer v-if="theme.footer" class="VPFooter" :class="{ 'has-sidebar': hasSidebar }"> <footer v-if="theme.footer" class="VPFooter" :class="{ 'has-sidebar': hasSidebar }">
<div class="container"> <div class="container">
<p class="message" v-html="theme.footer.message"></p> <p v-if="theme.footer.message" class="message" v-html="theme.footer.message"></p>
<p class="copyright" v-html="theme.footer.copyright"></p> <p v-if="theme.footer.copyright" class="copyright" v-html="theme.footer.copyright"></p>
</div> </div>
</footer> </footer>
</template> </template>

Loading…
Cancel
Save