-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Global Footer in Default Theme #339
Comments
Not yet in default theme. In fact, in current default theme, only the There is a You can check the Example: // .vuepress/theme/Layout.vue
<template>
<Layout>
<footer slot="page-bottom">
My page footer
</footer>
</Layout>
</template>
<script>
import Layout from '@default-theme/Layout.vue'
export default {
components: {
Layout,
}
}
</script> |
I have the same requirement, I tried creating a new The problem is, my Line 64 in d9b290b
(useDefaultTheme is now false) Would it make sense to always copy override.styl if found, to allow custom themes based on the default theme to still override stylus variables? |
As @meteorlxy said, it shouldn't be included in default theme. @ghys You should open another issue for feature request of |
The solution is not works with current version. |
New solution for vuepress v1.5.4 -- v1.xCreate 2 files
module.exports = {
extend: '@vuepress/theme-default'
}
<template>
<ParentLayout>
<template #page-bottom>
<div>My custom footer</div>
</template>
</ParentLayout>
</template>
<script>
import ParentLayout from '@parent-theme/layouts/Layout.vue'
export default {
name: 'Layout',
components: {
ParentLayout
}
}
</script> New solution for vuepress v2.0.0-beta.45https://v2.vuepress.vuejs.org/reference/default-theme/extending.html |
Changing the footer ignores some of my plugin like the vuepress-theme-succinct. |
It seems that footers are defined separately in each README.md front matter. Is there a way to define a global footer for all pages from a single file or themeConfig?
The text was updated successfully, but these errors were encountered: