Skip to content
New: Customize your theme with an AI assistant. Read the guide

Files: src/layouts/Base.astro, src/layouts/components/global/, src/pages/[...lang]/ · Skill level: Beginner

Lumio does not have a single global header/footer layout. It has multiple variants, and pages opt into them through Base.astro.

This is easy to miss because the page files just pass short values like header="two" or footer="one".

Variant Switching InBase.astro

The base layout accepts these props:

type Props = {
header?: "one" | "two" | "three";
footer?: "one" | "two";
};

Then it resolves them like this:

const defaultHeader = "one";
const defaultFooter = "two";
const resolvedHeader = Astro.props.header || defaultHeader;
const resolvedFooter = Astro.props.footer || defaultFooter;

So a page without explicit props uses:

  • Header.astro
  • FooterTwo.astro

Actual Component Files

Header variants

  • src/layouts/components/global/header/Header.astro
  • src/layouts/components/global/header/HeaderTwo.astro
  • src/layouts/components/global/header/HeaderThree.astro
  • src/layouts/components/global/Footer.astro
  • src/layouts/components/global/FooterTwo.astro

What Changes Between Header Variants

Header One

  • standard logo and main navigation
  • optional language switcher
  • optional navigation button
  • sticky header support

Header Two

  • top bar, Topbar.astro, with the phone, email, topbar links, and social links
  • blue logo section
  • different spacing/layout treatment
  • uses button label from t("button.getAQuote")

Header Three

  • top bar TopbarTwo.astro, with the topbar links, the announcement, and social links
  • announcement bar support via settings.announcementBar
  • different button styling, using the label from t("button.getAQuote")
  • uses every footer menu column
  • about, office, link columns, and social columns
  • optional subscription form
  • includes logo block
  • recent blog posts area
  • contact block and quick links, the first five links of the first footer menu column
  • optional subscription form

Both footers also have the Ask AI row and the theme credit.

How To Change A Page’s Shell

You can switch a page to another shell directly in the page file:

<Base {...page.data} header="three" footer="one">
<slot />
</Base>

This is the correct approach if you want a whole page to use a different shell. Do not edit the global header component unless you want that change to affect every page using that variant.

Type something to search...