Skip to content
Patchwork
Start free
All docs pages

Docs · Make it yours

Name, links and menu

Your name, email and links in site.config.ts, and the menu, the header and the footer.

The site’s details

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

  • name: the site’s name, in the title of every page and on the share images.
  • 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 and email. The email is the one the contact page shows.
  • socialLinks: your profiles, such as GitHub or LinkedIn. They go into the structured data for search engines, and a GitHub link shows on the contact page.
  • defaultTheme: 'dark', 'light' or 'system' for visitors who haven’t used the theme toggle. The demo opens in dark mode.
  • branding: the logo’s alt text, the favicon, and themeColor, the colour of the browser’s toolbar and of the share images.

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.

Pricing, Projects and Docs appear only while their setting is on (see Settings). Home comes first, from extraNav in the same file.

breakpoint sets the width from which the header shows the menu: 'lg', 1024px. Narrower screens get the phone menu. With fewer items, 'md' (768px) gives tablets the full menu too.

headerConfig in the same file sets the header’s button and the icons beside it. The button goes to the pricing page, or to contact when pricing is off. The demo has a GitHub icon; change its link to yours, or remove it.

The footer is src/components/site/SiteFooter.astro: the logo with a tagline, three groups of links, and the copyright. The tagline is footer.tagline in the translations. Links to pages that are turned off are left out, and a group without links is dropped.