Description
- I confirm that this is an issue rather than a question.
Bug report
Steps to reproduce
Attempt to override the sidebar or page top/bottom in the theme for a project
- Create an index.js file in the theme directory
module.exports = {
extend: '@vuepress/theme-default'
}
- Creatine the layout file in the theme directory
<template>
<ParentLayout>
<template #sidebar-top>
<span> Hello World </span>
</template>
</ParentLayout>
</template>
<script>
import ParentLayout from '@parent-theme/layouts/Layout.vue'
export default {
components: {
ParentLayout
}
}
</script>
What is expected?
The using the slots should update the content on the sidebar and the page.
What is actually happening?
Nothing is being rendered
Other relevant information
There needs to be templates wrapped around the slots on the Layout.vue in the vue default theme for the page and the sidebar sections.
Metadata
Metadata
Assignees
Labels
No labels