Skip to content
Astro Flightdeck
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 button 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, 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.
  • email: the address contact messages go to. 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 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 theme toggle. The demo opens in dark mode.
  • branding: the logo (see Colour, fonts and logo) and the favicon.

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 header’s button, “Start free” (nav.startFree), which leads to the pricing page, and the width from which the header shows the menu: breakpoint: 'lg', 1024px.

The phone menu

Below 1024px the menu opens as a panel (src/components/site/MobileMenu.astro): a search field, Home, the menu’s items, About and Contact, each with an icon, 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 Flightdeck by Hans Martens”.

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