Skip to content
Astro Rocket
Get in touch

Docs · Make it yours

Name, links and menu

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

All docs pages

The site’s details

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

  • name: your name. It’s the logo’s letter, the favicon’s letter, the first line of the hero on the homepage and the About page, and the title of every page.
  • 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, shown on the contact page.
  • 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 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. Each item has a label (a key in the translations, such as nav.blog), a route and an order. icon is the Lucide icon the item gets in the phone menu. Home comes first, from extraNav in the same file.

headerConfig in the same file sets the header’s button, “Get in touch”, which leads to the contact page, and the width from which the header shows the menu: breakpoint: 'lg', 1024px.

The footer is src/components/site/SiteFooter.astro. It has the logo with the line under your name in the hero, your profiles, the groups of links, and at the bottom the copyright, the privacy page and the theme’s credit, “Built with Astro Rocket by Hans Martens”.

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