Layouts & Navigation
Configure layouts, header alignment, dropdown menus, mobile drawer, announcement banner, and footer sections.
DefaultLayout Anatomy
@nuxtify/pages (and by extension @nuxtify/cms) registers DefaultLayout.vue as your site's default layout. It wraps your pages in a <v-app> shell with seven built-in regions:
AppHeader— Top navigation bar withAppLogo, primary links/dropdowns, secondary CTA links, and mobile menu toggle.AppNavigationDrawer— Slide-out mobile navigation drawer triggered automatically onsmAndDownviewports.AppAnnouncement— Optional site-wide announcement banner above main content.<v-main>(<slot />) — Your page content.AppToast&AppDialog— Global notification toast and dialog containers.AppFooter— Primary-colored footer with optionalFooterCallToAction, brand column, link groups,FooterCustom,AppCredits, and secondary legal links.
Every region is driven by app/app.config.ts under nuxtify, and any individual component can be overridden in app/components/.
Configuring Navigation
Navigation lives under nuxtify.navigation in app/app.config.ts and supports four slots:
| Slot | Where It Renders | Item Shape |
|---|---|---|
primary | Header main navigation & mobile drawer | Mix of flat Link items and TitledLinks dropdown menus |
secondary | Right side of header (first item is styled as a featured flat CTA button and stays visible on mobile) | Link[] |
altPrimary | Multi-column link groups in the footer | TitledLinks[] |
altSecondary | Small bottom links beneath footer credits (e.g., Privacy, Terms) | Link[] |
Flat Links vs. Dropdown Menus
Items in navigation.primary can be either a direct link or a titled dropdown group with optional icons and descriptions:
// app/app.config.ts
export default defineAppConfig({
nuxtify: {
navigation: {
primary: [
{
title: 'Product',
links: [
{
text: 'Features',
description: 'Explore everything included out of the box',
to: '/features',
icon: 'mdi-star-outline',
},
{
text: 'Use Cases',
description: 'See how teams build with Acme',
to: '/use-cases',
icon: 'mdi-compass-outline',
},
],
},
{ text: 'Pricing', to: '/pricing' },
{ text: 'Docs', to: '/docs' },
],
secondary: [
{
text: 'View on GitHub',
href: 'https://github.com/acme/project',
icon: 'mdi-github',
openInNew: true,
},
],
altPrimary: [
{
title: 'Product',
links: [
{ text: 'Features', to: '/features' },
{ text: 'Docs', to: '/docs' },
],
},
{
title: 'Company',
links: [
{ text: 'About', to: '/about' },
{ text: 'Contact', to: '/contact' },
],
},
],
altSecondary: [
{ text: 'Privacy', to: '/privacy' },
{ text: 'Terms', to: '/terms' },
],
},
},
})
Use to for internal Nuxt routes and href for external URLs. Setting openInNew: true adds target="_blank", rel="noopener nofollow", and an external arrow icon automatically.
Header Navigation Alignment
Control where primary desktop navigation links sit inside AppHeader via header.nav.align (@nuxtify/pages):
'center'(default) — Centered between the logo and secondary actions.'left'— Aligned next to the logo.'right'— Aligned next to secondary actions with an automatic vertical divider when secondary links exist.
// app/app.config.ts
export default defineAppConfig({
nuxtify: {
header: {
nav: {
align: 'left',
},
},
},
})
Announcement Banner
Enable a dismissible/linkable announcement bar using nuxtify.announcement:
// app/app.config.ts
export default defineAppConfig({
nuxtify: {
announcement: {
show: true,
chipText: 'New',
chipColor: 'secondary',
message: 'Docs are now live in Nuxtify CMS!',
buttonText: 'Explore Docs',
buttonUrl: '/docs',
exclude: ['/docs'],
},
},
})
Use include to restrict the banner to specific paths, or exclude to hide it on certain pages (like / or /docs).
Footer CTA, Custom Row, and Credits
AppFooter includes three built-in customization levers:
- Footer Call to Action (
footer.cta): Enable a prominent email-subscribe or CTA banner at the top of the footer (show,title,subtitle,color). - Custom Row (
app/components/FooterCustom.vue): Add extra link bars, social badges, or notices right above the credits without overridingAppFooter.vue. - Credits (
credits): Customizecreator.name,creator.domain,prependText,appendText, and toggleshowPoweredBy(trueby default).
// app/app.config.ts
export default defineAppConfig({
nuxtify: {
credits: {
creator: {
name: 'Jane Doe',
domain: 'janedoe.dev',
},
prependText: '© Acme. Built by',
appendText: 'All rights reserved.',
showPoweredBy: false,
},
},
})
Next Steps
- See every navigation, header, and footer property in Core Options and Pages Options.
- Ready to structure your Markdown content? Continue to Content Collections.