Skip to content
Astro Lumetric
Start free

Docs · Make it yours

Name, links and menu

Your product's name, email and profiles in site.config.ts, and the menu, the header's links and the footer.

All docs pages
On this page
  1. The site’s details
  2. The menu
  3. The phone menu
  4. The footer

The site’s details

src/config/site.config.ts holds what the site says about the product:

  • name: your product’s name. It’s in the logo beside the badge, the logo’s letter and the favicon’s letter, the title of every page (“Pricing — Astro Lumetric”), the copyright line and the sender of the forms’ emails.
  • description: the description search engines and share cards show.
  • url: the address. It reads SITE_URL from the environment, so set that at your host.
  • author: the author in the site’s metadata.
  • email: where contact messages go, shown on the contact and privacy pages. The demo’s is an example; replace it with your own.
  • socialLinks: your profiles, such as GitHub or LinkedIn. They show in the footer and on the contact page, and a GitHub link becomes the GitHub icon in the header. Without one, there’s no icon.
  • defaultTheme: 'dark', 'light' or 'system' for visitors who haven’t used the light/dark button. The demo opens in dark mode.
  • branding: the logo and the favicon (see Designs and colours), and the colour the browser’s toolbar and the share images use (colors.themeColor, the lime from src/config/colors.mjs).

The menu

The menu is navItems in src/config/nav.config.ts: Features, Pricing, Docs, Customers and Blog. Each item has a label (a key in the translations, such as nav.blog), a route or an href, and an order. Features is an href, /#features, the features section of the homepage. icon is the Lucide icon the item gets in the phone menu. Docs is there while docs is on in the settings, and Customers while projects is on.

There’s no Home in the header’s menu: the logo leads home. About and Contact aren’t in it either; they’re in the footer and the phone menu.

headerConfig in the same file sets the width from which the header shows the menu: breakpoint: 'lg', 1024px.

The header’s button and icons are set in src/components/site/SiteHeader.astro: the search icon, the GitHub icon from socialLinks, Sign in while signIn.show is on, and the “Start free” button (nav.startFree), which leads to signUp in the settings, or to the pricing page without one (Settings). The header and the bar shows how they sit.

The phone menu

Below 1024px the menu opens as a panel (src/components/site/MobileMenu.astro): a search field, then under “Navigate” Home, the menu’s items, About and Contact, each with an icon, and at the foot the Sign in button (with signIn.show on) and the header’s button.

The footer is src/components/site/SiteFooter.astro. It has the logo with a line about the product under it (home.footerTagline in the translations), your profiles, and the groups of links:

  • Product: Features, Pricing and Customers;
  • More: About, Blog and Contact;
  • The theme: the docs, the components page, the theme on GitHub and its licence.

At the bottom are the copyright, the privacy page and the theme’s credit, “Built with Astro Lumetric by Hans Martens”.

The “The theme” group is for the demo: it goes with the components page (showcase in the settings), and its docs link with docs.

In the stage design the footer has the second background with a fine line above it; in grid it has no background of its own, so the page’s ruled lines run on behind it.