How can I still display global navbar when I use a custom layout? #1320
-
I am using a custom layout named Fullwidth, Here is my index.md: ---
layout: FullWidth
---
my content And I create the Fullwidth.vue: <template>
<Content />
</template>
<script setup></script>
<style lang="scss" scoped></style>
Finally,I config the Fullwidth.vue in export default defineClientConfig({
layouts: {
FullWidth,
}
}) But when I visited the page, I found that the entire page only showed "my content" without the header navbar. I expected the navbar to still be displayed. What should I do to keep the navbar visible? |
Beta Was this translation helpful? Give feedback.
Answered by
Mister-Hope
May 8, 2023
Replies: 1 comment
-
With slots, https://vuejs.press/advanced/cookbook/making-a-theme-extendable.html |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Mister-Hope
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
With slots, https://vuejs.press/advanced/cookbook/making-a-theme-extendable.html