# Array documentation

Version 1.8.0 · Updated 11 Nov 2026 · Works with Ghost 6 · Changelog: https://brightthemes.com/changelog/array

Source: https://brightthemes.com/docs/array

How to install, set up and customize the Array Ghost theme, from its design settings to theme development.

## Install the theme

Upload the theme to Ghost and activate it, step by step, in **Settings › Site › Theme**.

To upload the theme:

1.  Log in to Ghost Admin at `yoursite.com/ghost/`.
2.  Open **Settings › Site › Theme** and choose **Change theme**.
3.  Choose **Upload theme** and select `array.zip`, the file you downloaded. If a theme with the same name is installed, Ghost asks whether to overwrite it: choose **Overwrite** to update it and keep its design settings.
4.  When the upload is done, choose **Activate theme** in the **Upload successful** dialog.

Ghost checks the theme with GScan when you upload it and lists any problems. The full walkthrough, with what to check when something goes wrong, is in [How to install a theme in Ghost](https://brightthemes.com/blog/ghost-theme-install).

*Ghost Admin: Settings › Site › Theme › Change theme*

## Upload routes.yaml

Upload the theme's routes.yaml in **Settings › Advanced › Labs**, so collections and pages work as the theme expects.

> [!CAUTION]
> The theme's `routes.yaml` file is inside the theme's zip, and shown below. When it has more than Ghost's default routes (the `/` collection and the tag and author pages), the theme needs it: upload it, or the theme's extra collections and pages won't work. Uploading it replaces the site's routes, so add any routes of your own to it first.

Uploading `routes.yaml` is a separate step from uploading the theme:

1.  Log in to Ghost Admin at `yoursite.com/ghost/`.
2.  Open **Settings › Advanced › Labs**, choose **Open**, then the **Beta features** tab.
3.  In the **Routes** row, open the menu next to **Edit**, choose **Upload file** and select the `routes.yaml` from the root directory of the theme.

The `routes.yaml` in the zip sets up the URLs the theme expects. For everything routing in Ghost can do (collections, channels, taxonomies and static routes), see [Ghost CMS dynamic routing & routes.yaml](https://brightthemes.com/blog/ghost-routing).

*Ghost Admin: Settings › Advanced › Labs*

```yaml title="routes.yaml"
## routes.yaml

routes:
  /archive/:
    controller: channel
    template: archive
    # data: page.archive

collections:
  /:
    permalink: /{slug}/
    template: index

taxonomies:
  tag: /tag/{slug}/
  author: /author/{slug}/
```

## Custom settings

Change the theme's design settings in Ghost Admin without code, and keep them when you update the theme.

The theme has its own [design settings](https://brightthemes.com/blog/ghost-custom-theme-settings), which you change in Ghost Admin without code. Open **Settings › Site › Design & branding** and choose **Customize**: the theme's settings are on the **Theme** tab, in up to three groups: **Site wide**, **Homepage** and **Post**. In these docs a setting is written with its group, for example **Settings › Site › Design & branding › Theme › Site wide**.

*Ghost Admin: Settings › Site › Design & branding › Theme*

The theme's settings, defined in its `package.json`:

| Setting | Group | What it does |
|---|---|---|
| Background color | Site wide | Set the main background color |
| Text color | Site wide | Set the main text color |
| Border color | Site wide | Set the border color |
| Font headings | Site wide | Set the heading font (when the Ghost 'Heading font' is set to theme default) |
| Font body | Site wide | Set the body font (when the Ghost 'Body font' is set to theme default) |
| Header primary navigation | Site wide | Show primary navigation links in the header |
| Header last nav item styled | Site wide | Apply special styling for the last navigation item in the header |
| Show post card images | Site wide | Show feature images on post cards |
| Hero headline | Homepage | Set the homepage hero headline (you can include HTML) |
| Hero subheading | Homepage | Set the homepage hero subheading |
| Hero subscribe | Homepage | Show the Ghost subscribe form for member signup |
| Hero background | Homepage | Set the hero section background style |
| Featured tags | Homepage | List of tag slugs separated by comma and no spaces |
| Tags limit | Homepage | Set the number of tags to be rendered |
| Tags layout | Homepage | Set the layout for the featured tags |
| Tag card background | Homepage | Set the tag card background style |
| Post feed | Homepage | Set the homepage post feed |
| Post feed layout | Homepage | Set the post feed layout for homepage, tag and author pages |
| Default post template | Post | Set the default post template for your posts |

> [!NOTE]
> To keep your design settings when you update the theme, upload the new version under the same zip file name, or deploy it with the [GitHub action](https://brightthemes.com/blog/ghost-theme-deployment). More in [keeping your design settings](https://brightthemes.com/blog/ghost-theme-settings-update).

## Homepage

The homepage is defined in `home.hbs` and has these sections, which you set up with the design settings in **Settings › Site › Design & branding › Theme › Homepage**:
- [Hero](https://brightthemes.com/docs/array#hero)
- [Tags section](https://brightthemes.com/docs/array#tags-section)
- [Post feed](https://brightthemes.com/docs/array#post-feed)

> [!NOTE]
> The [header](https://brightthemes.com/docs/array#header) and [footer](https://brightthemes.com/docs/array#footer) are on every template (posts, pages, tags, authors).

### Hero

The hero has these settings in **Settings › Site › Design & branding › Theme › Homepage**:

- **Hero headline** — the hero title. It accepts HTML, so you can add links or format the text. Example from the demo:
  ```html
  Navigating the exciting world of <a href="/tag/design/">design</a>, <mark>code</mark>, and <span><em>technology</em></span>.
  ```
- **Hero subheading** — the text under the headline. You can use HTML here too, for links or bold text.
- **Hero subscribe** — shows the Ghost subscribe form for member sign-ups (on by default).
- **Hero background** — the background of the hero:
  - `accent-color` (default) — the accent color with an SVG pattern (`partials/hero-bg.hbs`)
  - `publication-cover` — the publication cover from **Settings › Site › Design & branding › Brand**
  - `none` — no background

### Tags section

By default this section shows the tags with the most posts. To show specific tags instead, list them in **Featured tags** in **Settings › Site › Design & branding › Theme › Homepage**. Example from the demo:
```text
design,ui-ux,ar,vr,graphics,code,ai,gadgets,cloud
```

> [!IMPORTANT]
> Use the tag **slugs**, separated by commas, with no spaces.
>
> To find a tag's slug, open **Tags** in Ghost Admin, open the tag and check its **Slug** field.

**Tags limit** sets how many tags are shown: `3`, `6`, `9` (default), `12`, `18`, `30` or `all`.

**Tags layout** sets how they're laid out:
- `asymmetric-grid` (default) — a 3-column grid with offsets that make the layout asymmetric
- `bento-grid` — a bento-style grid, with some cards spanning an extra row or column
- `classic-grid` — a classic 3-column grid
- `sections-with-posts` — a section for each tag, with up to 5 posts

**Tag card background** sets the background of the tag cards:
- `accent-color` — the tag's accent color
- `accent-color-pattern` (default) — the tag's accent color with a geometric pattern
- `feature-image` — the tag's feature image

### Post feed

The post feed is defined in `partials/post-feed.hbs`. Its settings are in **Settings › Site › Design & branding › Theme › Homepage**.

**Post feed** sets what the homepage feed shows:
- `latest` (default) — the latest posts
- `featured` — the featured posts
- `none` — no post feed

**Post feed layout** sets the layout: `1-column` (default), `2-column` or `3-column`. It applies to the homepage feed and to the tag and author pages.

To show feature images on the post cards, turn on **Show post card images** in **Settings › Site › Design & branding › Theme › Site wide** (off by default). In the `1-column` layout the image is on the right of the card; in the `2-column` and `3-column` layouts it's at the top. The setting also applies to the related posts at the end of each post.

## Header

The header is defined in `partials/header.hbs` and it renders:
- the publication logo (see [Code snippets](https://brightthemes.com/docs/array#how-to-change-the-logo-size) to change its size)
- the primary navigation from **Settings › Site › Navigation**, if **Header primary navigation** is on
- the Ghost search button

Two settings in **Settings › Site › Design & branding › Theme › Site wide** change it:
- **Header primary navigation** — shows the primary navigation links in the header (on by default). Turn it off for a minimal header.
- **Header last nav item styled** — gives the last navigation item in the header its own style (on by default).

## Footer

The footer is defined in `partials/footer.hbs` and it renders your publication logo, site description, a subscribe form, primary and secondary navigation, [social links](https://brightthemes.com/docs/array#social-links) and the copyright notice.

## Templates

### Post templates

Array has four [post templates](https://brightthemes.com/blog/ghost-custom-templates) in addition to the default. You choose them in the post settings, under **Template**:
- `custom-post-with-narrow-feature-image.hbs` — a narrow feature image, as wide as the content
- `custom-post-with-no-feature-image.hbs` — no feature image
- `custom-post-with-wide-feature-image.hbs` — a wide feature image
- `custom-post-with-table-of-contents.hbs` — a table of contents

The default template follows **Default post template** in **Settings › Site › Design & branding › Theme › Post**: `narrow-feature-image` (default), `no-feature-image`, `wide-feature-image` or `with-table-of-contents`.

### Page templates

Array has four page templates. You choose them in the page settings, under **Template**:
- `custom-template-membership.hbs` — a template to create a [membership page](https://array.brightthemes.com/membership/) with your tiers
- `custom-template-signin.hbs` — a template to create a [sign-in page](https://array.brightthemes.com/signin/)
- `custom-template-signup.hbs` — a template to create a [sign-up page](https://array.brightthemes.com/signup/)
- `custom-template-tags.hbs` — a template to create a [tags page](https://array.brightthemes.com/tags/); you can create several such pages

## Collections

The theme comes with one custom collection: `/archive/`, which lists all your posts.
To activate it, [upload the routes.yaml](https://brightthemes.com/docs/array#routes) file.

### Setting metadata

To control the metadata of this page, create a page in Ghost Admin with the same URL and add the `data` property in the routes file:
1. Change the routes file and add the `data` property:
   ```yaml
   /archive/:
     controller: channel
     template: archive
     data: page.archive
   ```
2. Create a new page in Ghost Admin and make sure the page URL is `archive`.
3. Upload `routes.yaml` again.

## Color customization

You can change the accent color in **Settings › Site › Design & branding › Brand**. The theme's colors are CSS custom properties, so you can override them in **Settings › Advanced › Code injection › Site header** ([what code injection is](https://brightthemes.com/blog/ghost-code-injection)).

Array has one color scheme. Three more colors are settings in **Settings › Site › Design & branding › Theme › Site wide**:
- **Background color** — the main background color (default `#ffffff`)
- **Text color** — the color of most text (default `#262626`)
- **Border color** — the color of borders, for example around the footer (default `#e6e6e6`)

To see color combinations in use, see the [colors page on the demo](https://array.brightthemes.com/colors/).

Some useful tools for choosing colors and gradients:

- [Fuel HSL color picker](https://fffuel.co/cccolor/)
- [Gradients | Components AI](https://components.ai/gradient/)
- [CSS Gradient Generator](https://cssgradient.io/)

## Typography

> [!NOTE]
> Ghost has [custom fonts](https://ghost.org/changelog/custom-fonts/) of its own: you set the heading and body fonts in **Settings › Site › Design & branding › Brand › Typography**.

To use the theme's own fonts instead, set both to **Theme default** there.

For a font Ghost doesn't offer (your own files or a Google Font added with code injection), follow [how to add custom fonts in Ghost](https://brightthemes.com/blog/ghost-custom-fonts).

By default the theme uses **Syne** for headings and **Figtree** for body.

With **Theme default** set in Ghost's typography settings, two theme settings in **Settings › Site › Design & branding › Theme › Site wide** choose the fonts:
- **Font headings** — the font of the headings (default `Syne`)
- **Font body** — the font of the rest of the text (default `Figtree`)

Both have the same options: `Arima`, `Bricolage Grotesque`, `Figtree`, `Inter`, `Kalnia`, `Outfit`, `Podkova`, `Sen`, `Syne`, `Unbounded` and `System`.

> [!TIP]
> `System` uses the reader's system font and makes no requests to Google Fonts, which helps if GDPR is a concern. To keep a Google font and host the files yourself, see [self-hosting Google Fonts](https://brightthemes.com/blog/ghost-google-fonts#self-host-the-font-instead).

## Dropdown menus

Add dropdown menus to the theme's navigation from Ghost Admin, by starting an item's label with a minus sign.

The theme can show dropdown menus in the header. To make an item a submenu item, start its label with a minus sign (`-`) in **Settings › Site › Navigation** (choose **Customize** to edit the menu).

An item that starts with `-` goes into the dropdown of the item above it. For example, these items make a **Members** menu with three entries. The full walkthrough is in [How to add dropdown menus in Ghost](https://brightthemes.com/blog/ghost-dropdown-menus).

*Ghost Admin: Settings › Site › Navigation*

## Ghost config

Settings in Ghost's config file that the theme can use, such as image sizes and the posts per page.

Some of the theme's configuration lives in its `package.json` file: the posts per page, the image sizes and the [custom settings](https://brightthemes.com/docs/array#custom-settings).

### Posts per page

`posts_per_page` is the number of posts a list shows before it's paginated, such as the tag and author pages.

To change it, edit the value in `package.json`. The theme comes with:

```json
"config": {
  "posts_per_page": 12
}
```

### Image sizes

Ghost makes copies of every uploaded image at the [sizes the theme asks for](https://ghost.org/docs/themes/assets/#responsive-images-configuration), so pages can load the right size. They're set under `image_sizes` in `package.json`; edit them before you upload the theme. The theme comes with:

```json
"image_sizes": {
  "xxs": {
    "width": 30
  },
  "xs": {
    "width": 100
  },
  "s": {
    "width": 320
  },
  "m": {
    "width": 640
  },
  "l": {
    "width": 960
  },
  "xl": {
    "width": 1280
  },
  "xxl": {
    "width": 2000
  }
}
```

## Comments

Turn on Ghost's native comments for members, and choose who can comment.

The theme uses [Ghost's native comments](https://brightthemes.com/blog/ghost-comments). Turn them on in **Settings › Membership › Access**, under **Who can comment on posts?**:

- `All members` — every signed-in member
- `Paid-members only` — signed-in members with an active paid subscription
- `Nobody` — comments are off

If the theme has a comments setting of its own (listed in its settings above), set it to Ghost's native comments too.

## Icons

How the theme's icons work and how to add or change one.

The theme's icons are from [Tabler Icons](https://tabler.io/icons). Only the icons the theme uses are included, each as its own `.hbs` file in `partials/icons/`.

To add an icon:

1.  Find the icon on [Tabler Icons](https://tabler.io/icons) and select it: this copies its SVG code.
2.  In `partials/icons/`, create a file named after it, for example `camera.hbs`.
3.  Paste the code into the file and save it.

For example, the `camera` icon copies as:

```html
<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-camera" width="24" height="24" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
  <path stroke="none" d="M0 0h24v24H0z" fill="none"/>
  <path d="M5 7h1a2 2 0 0 0 2 -2a1 1 0 0 1 1 -1h6a1 1 0 0 1 1 1a2 2 0 0 0 2 2h1a2 2 0 0 1 2 2v9a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-9a2 2 0 0 1 2 -2" />
  <circle cx="12" cy="13" r="3" />
</svg>
```

To show an icon in the theme's templates, use the `partials/icon.hbs` partial with the icon's name (and, optionally, Tailwind classes for its size in `icon_class`, such as `size-6`):

```hbs
{{>icon name="camera"}}
```

The CSS only has the Tailwind classes the theme's files already use, so after adding a class the theme doesn't use yet, rebuild the CSS (see Theme development).

## Social links

Add social links to the theme: the networks Ghost supports, and others through code injection.

The theme shows the social accounts you set in **Settings › General settings › Social accounts**.

It can also link these platforms, which Ghost has no field for:
- Discord
- GitHub
- Pinterest
- Reddit
- Telegram
- WhatsApp

To add one, put its link in **Settings › Advanced › Code injection › Site footer** ([what code injection is](https://brightthemes.com/blog/ghost-code-injection)). For example, for GitHub:

```html
<script>
  socials.github = 'https://github.com/brightthemes'
</script>
```

The other names are `discord`, `pinterest`, `reddit`, `telegram` and `whatsapp`.

> [!NOTE]
> For a platform that isn't listed, add its icon (see the Icons section), then add a block for it in `partials/social-links.hbs`, like the ones already there.

## Social sharing

The share buttons on posts: which networks they include and where to change them.

Each post has share buttons for:

- X
- Bluesky (not in every theme)
- Facebook
- LinkedIn
- Email
- Copy link

To add or remove one, edit the theme's share partial: `partials/social-share.hbs` (`partials/share-links.hbs` in Thred).

## Translations

Translate the theme's own text into your language with its locale files, and add a language that's missing.

By default, everything is in English (`en.json`). The theme also comes with translations in:

- German (`de.json`)
- Spanish (`es.json`)
- French (`fr.json`)
- Italian (`it.json`)
- Dutch (`nl.json`)
- Portuguese (`pt.json`)

> [!NOTE]
> A translation applies once you set the site's language in **Settings › General settings › Publication language**.

To change a translation, edit its file in the theme's `locales` directory:

```
|__ locales
|   |__ de.json
|   |__ en.json
|   |__ es.json
|   |__ fr.json
```

For a language the theme doesn't have, add a file named with its language code (for example `pl.json`): copy `en.json`, rename it, and translate the values. The full walkthrough is in [How to translate your theme in Ghost](https://brightthemes.com/blog/ghost-theme-translations).

## Customize with AI

Change the theme beyond its settings with an AI assistant, and keep those changes when you update.

The theme includes `AGENTS.md`, the instructions coding assistants read: how the theme is built, which settings to try before changing code, and how to keep your changes through updates. More on how it works is on [Customize your Ghost theme with AI](https://brightthemes.com/ai).

### Three ways, from safest to most flexible

- **Settings, no code.** Colors, fonts, layouts and sections are in **Settings › Site › Design & branding**. A chat assistant can find the right setting for you: **Ask AI** at the top of this page hands it these docs.
- **Code injection, a few lines.** CSS or a script in **Settings › Advanced › Code injection**. Ghost keeps it when you update the theme.
- **A coding assistant, the theme's files.** For anything the settings can't do. The assistant reads `AGENTS.md` first, then changes the files and logs each change in `CUSTOMIZATIONS.md`.

### Start a coding assistant on the theme

Unzip `array.zip` and open the folder in a coding assistant, such as Claude Code, Cursor or Codex. A first message that works:

```text title="Prompt"
Read AGENTS.md.
I want the cards' corners a bit rounder.
Use a setting if there is one; otherwise change the theme's files,
log the change in CUSTOMIZATIONS.md, and run npm run test before you finish.
```

When it's done, try the theme on a staging site or a local Ghost, then zip it (`npm run zip` puts the zip in `dist/`) and upload it in **Settings › Site › Theme › Change theme**.

### Update a theme you changed

Ghost replaces every file of the theme when you upload a new version, so changes to its files have to be made again. The log in `CUSTOMIZATIONS.md` sits inside the theme, so it travels with your changes:

1. Download your theme from Ghost: **Settings › Site › Theme › Change theme**, **Installed**, then the theme's menu › **Download**. It has your changes and their log, including changes made with Ghost's **Edit code**.
2. Download the new version from the [Polar customer portal](https://polar.sh/brightthemes/portal), and unzip both side by side.
3. Ask your assistant: "Update to the new version and apply the changes in CUSTOMIZATIONS.md."
4. Check the result on a staging site, then upload it. Ghost asks before it overwrites the theme of the same name.

> [!NOTE]
> Support doesn't cover changes to the theme, including the ones an assistant makes. If one breaks something, go back to the original zip; for help with the change itself, see the [setup and customization packages](https://brightthemes.com/services).

## Theme development

Set up the theme for local development: install the dependencies, run the build, and package the zip.

For changes beyond the design settings and [code injection](https://brightthemes.com/blog/ghost-code-injection), you can work on the theme's source. The theme is built with [Tailwind CSS](https://tailwindcss.com/) and [Alpine.js](https://alpinejs.dev/), and its assets are compiled and minified with [Vite](https://vitejs.dev/).

You need [Node.js](https://nodejs.org/) and a [local install of Ghost](https://brightthemes.com/blog/ghost-install#2-install-ghost-locally). Put the theme's folder in Ghost's `content/themes/` directory, open it in your terminal and run `npm install` to install its dependencies. Then:

1. `npm run dev` — runs the Vite dev server at `localhost:2468`, in front of your local Ghost on port 2368: it rebuilds the assets whenever you change a file and reloads the browser. The Vite configuration is in `vite.config.js`.
2. `npm run build` — builds the assets once, into `assets/built/`.
3. `npm run test` — checks the theme with [GScan](https://gscan.ghost.org/), Ghost's own theme checker.
4. `npm run zip` — makes a zip of the theme in the `dist` directory, ready to upload.

Ghost's own [**Edit code**](https://brightthemes.com/blog/ghost-theme-code-editor) changes the theme's files in Ghost Admin, but it doesn't run this build: use it for templates, and make style and script changes here.

## Code snippets

Short snippets for common changes.

### How to change the logo size?

In **Settings › Advanced › Code injection › Site header** ([what code injection is](https://brightthemes.com/blog/ghost-code-injection)), add the following, changing the values as needed:
```html
<style>
:root {
  --logo-h-mobile: 28px;
  --logo-w-mobile: auto;
  --logo-h-desktop: 32px;
  --logo-w-desktop: auto;
}
</style>
```

Something missing or unclear? Ask support: https://brightthemes.com/support
