# The Astro edition

> The Astro edition is a real Astro project: one file per page, a shared layout, reusable components and every image, script and style from the design. It builds to a static site you can host anywhere.

> **Where it's available** The Astro edition is available for [Halden](https://frontiertemplates.com/templates/halden), [Isinglass](https://frontiertemplates.com/templates/isinglass), [Lightmere](https://frontiertemplates.com/templates/lightmere), [Brightrow](https://frontiertemplates.com/templates/brightrow), [Westlight](https://frontiertemplates.com/templates/westlight), [Brightrun](https://frontiertemplates.com/templates/brightrun), [Ampleworth](https://frontiertemplates.com/templates/ampleworth), [Meetly](https://frontiertemplates.com/templates/meetly), [Relay](https://frontiertemplates.com/templates/relay), [Tidewell](https://frontiertemplates.com/templates/tidewell), [Foray](https://frontiertemplates.com/templates/foray), [Foldline](https://frontiertemplates.com/templates/foldline), [Gloam](https://frontiertemplates.com/templates/gloam), [Nijimi](https://frontiertemplates.com/templates/nijimi), [Veerline](https://frontiertemplates.com/templates/veerline), [Sunswell](https://frontiertemplates.com/templates/sunswell), [Brightloft](https://frontiertemplates.com/templates/brightloft), [Brightrange](https://frontiertemplates.com/templates/brightrange), [Goldwake](https://frontiertemplates.com/templates/goldwake), [Covelight](https://frontiertemplates.com/templates/covelight), [Courthand](https://frontiertemplates.com/templates/courthand), [Fanlight](https://frontiertemplates.com/templates/fanlight), [Calmfield](https://frontiertemplates.com/templates/calmfield), [Yoake](https://frontiertemplates.com/templates/yoake), [Daystone](https://frontiertemplates.com/templates/daystone), [Clearfold](https://frontiertemplates.com/templates/clearfold), [Silverlark](https://frontiertemplates.com/templates/silverlark), [Daglys](https://frontiertemplates.com/templates/daglys), [Dawnhall](https://frontiertemplates.com/templates/dawnhall), [Sunhand](https://frontiertemplates.com/templates/sunhand), [Fairsky](https://frontiertemplates.com/templates/fairsky), [Sunprint](https://frontiertemplates.com/templates/sunprint), [Gladwick](https://frontiertemplates.com/templates/gladwick), [Sunwerk](https://frontiertemplates.com/templates/sunwerk), [Lindwell](https://frontiertemplates.com/templates/lindwell), [Fondly](https://frontiertemplates.com/templates/fondly), [Amberlea](https://frontiertemplates.com/templates/amberlea), [Stoutheart](https://frontiertemplates.com/templates/stoutheart), [Honeyford](https://frontiertemplates.com/templates/honeyford), [Lanthorn](https://frontiertemplates.com/templates/lanthorn), [Lullwater](https://frontiertemplates.com/templates/lullwater), [Kinfold](https://frontiertemplates.com/templates/kinfold), [Truecourse](https://frontiertemplates.com/templates/truecourse), [Kindwright](https://frontiertemplates.com/templates/kindwright), [Goodmorrow](https://frontiertemplates.com/templates/goodmorrow), [Fairloom](https://frontiertemplates.com/templates/fairloom), [Gladmere](https://frontiertemplates.com/templates/gladmere), [Blithe](https://frontiertemplates.com/templates/blithe), [Evenhand](https://frontiertemplates.com/templates/evenhand), [Stillroot](https://frontiertemplates.com/templates/stillroot), [Waymark](https://frontiertemplates.com/templates/waymark), [Warmtone](https://frontiertemplates.com/templates/warmtone), [Lodestar](https://frontiertemplates.com/templates/lodestar), [Oriel](https://frontiertemplates.com/templates/oriel), [Safelight](https://frontiertemplates.com/templates/safelight), [Fairleaf](https://frontiertemplates.com/templates/fairleaf), [Truesum](https://frontiertemplates.com/templates/truesum) and [Clerestory](https://frontiertemplates.com/templates/clerestory). [The format table](https://frontiertemplates.com/docs/choosing-a-format#status) is always current.

## Requirements

- Node.js **22.12 or newer** (`node -v` to check).
- npm, which comes with Node. pnpm and yarn work too.

## Install and run

Press play. This is a real run of the Meetly Astro edition:

```
$ npm install
added 200 packages, and audited 201 packages in 3s
$ npm run dev
Dev server running at http://localhost:4321
$ npm run build
[build] 33 page(s) built in 1.44s
[build] Complete! Your site is in dist/
```

```shell
$ npm install
$ npm run dev       # http://localhost:4321 with live reload
$ npm run build     # static site in dist/
$ npm run preview   # serve dist/ to check the build
```

## Where things are

Meetly · Astro edition:

- `README.md`: Requirements, commands, where things are, and deploy steps for Netlify, Vercel and Cloudflare Pages.
- `package.json`: Astro and three scripts: `dev`, `build`, `preview`. Needs Node.js 22.12 or newer.
- `astro.config.mjs`: Static output with `build.format: 'file'`, so URLs stay `pricing.html` like the HTML edition. Set `site` to your domain for absolute social images.
- `src/`
  - `pages`: One `.astro` file per page, 33 in Meetly. Title, description and social image sit in the `meta` object at the top.
  - `Base.astro`: The shared `<head>`: fonts, stylesheets, favicon and scripts.
  - `components`: `Header.astro`, `Footer.astro` and `News.astro`, shared across pages.
  - `copy.json`: The copy marked with `data-slot`: hero headline, lead, buttons and feature lines for the three home pages. The store's “Try it with your brand” copy drops in here.
- `public/`
  - `tokens.css`: Colours, fonts and spacing as CSS custom properties, light and dark.
  - `site.js`: The brand name, navigation, Pages menu, footer columns and notification bars, in the `SITE` object at the top.
  - `boot.js`: `MEETLY_SETTINGS`: header and footer layout, default theme, theme toggle, languages, cookie banner, loader.
  - `media`: The hero video and its posters. Swap them for your own footage.

## Editing

- **Text** lives in the page file. Copy marked with `data-slot` on the home pages lives in `src/data/copy.json`.
- **Brand, navigation and footer** are built in the browser from the `SITE` object at the top of `public/assets/site.js`.
- **Colours, fonts and spacing** are tokens in `public/assets/tokens.css`. Page-only styles sit in a `<style is:inline>` block inside the page.
- **A new page**: copy one in `src/pages/`, rename it and change its `meta`. It is served at `/<name>.html`.
- **Social images** need absolute URLs: set `site` in `astro.config.mjs` to your domain.

![The Meetly Astro edition open in an editor, with its README showing requirements, start and build commands.](https://frontiertemplates.com/img/docs/files-astro.webp)

## Deploy

`npm run build` writes plain static files to `dist/`. Netlify, Vercel and Cloudflare Pages all detect Astro and fill in the settings; see [Deploying](https://frontiertemplates.com/docs/deploying).

---
Source: https://frontiertemplates.com/docs/astro · All guides: https://frontiertemplates.com/docs
