CarrGo Astro documentation
Site settings
Every option in src/site.config.ts, from your company's phone number to the menus, footer and demo bar.
src/site.config.ts holds everything about your company that appears on many pages. Change it once and every page updates.
Company and contact
| Setting | What it does |
|---|---|
name |
Your company name. Used in the logo, page titles and structured data. |
tagline |
One line about what you do. The default description for pages that don’t have their own. |
city |
Your main city. |
contact.phone |
Your phone number as it should appear on the site. |
contact.phoneHref |
The same number with no spaces, for tap-to-call links (+15550100000). |
contact.whatsapp |
Your WhatsApp number: country code and number, digits only. Leave it empty ('') to hide every WhatsApp link. |
contact.email, contact.address, contact.hours |
Shown in the header strip, footer, contact block and map block. |
licence |
Your licence and insurance line, shown at the bottom of every page. |
strip |
The short trust line in the strip above the header. Leave it empty to hide it. |
shareImage |
The image used when a page without its own image is shared on social media (a file name in src/assets/images/). |
Menus
nav is the main menu. An item with children becomes a dropdown on desktop and a group in the phone menu:
nav: [
{ label: 'Ride', href: '/services/', children: [
{ label: 'Airport transfers', href: '/services/airport-transfers/' },
] },
{ label: 'Fares', href: '/fares/' },
],
footer.columns are the link columns in the footer, footer.about is the paragraph under the logo, and footer.legal holds the links in the bottom row.
Header, footer and phone bar
- The header always shows your phone number, the light/dark switch and a Book now button that goes to
booking.page. - On phones, a bar fixed to the bottom of the screen shows Book and Call. Set
mobileBar.second: 'whatsapp'to show WhatsApp instead of Call. apps.iosandapps.androidare your app store links. Leave one empty to hide its button. Leave both empty to hide the store buttons everywhere.sociallists your social accounts (facebook,instagram,x). Remove a line to hide that icon.
Demo bar
The yellow bar above the header switches between the three demo home pages. Set demo.enabled: false before you publish.
Map
map.embed is the address the map blocks show when a visitor taps Show map. Nothing loads from the map service before that tap. To get an address:
- OpenStreetMap: go to openstreetmap.org, find your office, choose Share → HTML and copy the
srcaddress from the code. - Google Maps: search for your business, choose Share → Embed a map and copy the
srcaddress.
map.link is the Open in maps link beside the office details.
Booking, fares and drivers
The same file also holds booking, fares and drivers. These are covered in Booking and forms, Fares and the estimator and Driver recruitment.