# Thred documentation

Version 1.2.0 · Updated 30 Nov 2026 · Works with Ghost 6 · Changelog: https://brightthemes.com/changelog/thred

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

How to install, set up and customize the Thred 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 `thred.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:

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 |
|---|---|---|
| Color scheme | Site wide | Set the default color scheme of the site |
| Dark theme logo | Site wide | Logo for the dark theme |
| Left sidebar | Site wide | Set the default left sidebar visibility for desktop |
| Left sidebar user preference | Site wide | Save user preference for left sidebar visibility for future sessions |
| Right sidebar | Site wide | Set the default right sidebar visibility for mobile and desktop |
| Use portal links | Site wide | Use Ghost Portal for the sign in and sign up flow |
| CTA text | Site wide | Set the main CTA button text |
| CTA link | Site wide | Set the main CTA button URL |
| Hero headline | Homepage | Set the homepage hero headline (you can include HTML) |
| Hero subheading | Homepage | Set the homepage hero subheading (you can include HTML) |
| Hero action | Homepage | Set the homepage hero action |
| Hero image position | Homepage | Set the position of the site cover image in the hero section |
| Content feed layout | Homepage | Set the layout of the content feeds on the homepage |
| Default feed | Homepage | Set the default active feed for the homepage when 'tabs' layout is selected |
| Post feed style | Homepage | Set the post feed style |
| Show comment count | Homepage | Show the comment count on post cards |
| Show comment button | Post | Show a floating comment button on post pages |
| Enable syntax highlighting | Post | Enable syntax highlighting for code blocks for 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 consists of several sections;
what appears is controlled by the [design settings](https://brightthemes.com/docs/thred#custom-settings) in **Settings › Site › Design & branding › Theme › Homepage**:
- [Left sidebar](https://brightthemes.com/docs/thred#left-sidebar)
- [Hero](https://brightthemes.com/docs/thred#hero)
- [Post feeds](https://brightthemes.com/docs/thred#post-feeds)
- [Categories](https://brightthemes.com/docs/thred#categories)
- [Right sidebar](https://brightthemes.com/docs/thred#right-sidebar)

### Hero

The hero is implemented in `partials/hero.hbs`. It appears only on the homepage when **Hero headline** is set in **Settings › Site › Design & branding › Theme › Homepage**.

The headline and subheading are set with **Hero headline** and **Hero subheading**; both can include HTML.

The image is your publication cover (**Settings › Site › Design & branding › Brand › Publication cover**). Its placement is set with **Hero image position**:

- `none` (default) — no image; only the headline, subheading and action, centered
- `top` — the image above the text, stacked and centered
- `bottom` — the image below the text, stacked and centered
- `left` — the image on the left, the text on the right, left-aligned
- `right` — the image on the right, the text on the left, left-aligned
- `background` — the cover image fills the hero behind the text; the text is centered and white, with extra vertical padding

You can also add a call to action under the subheading with **Hero action**:
- `none` (default) — no button or form
- `subscribe` — an inline subscribe form (only for visitors who are not signed in)
- `cta` — one button with your main CTA text and link, from **CTA text** and **CTA link** in **Settings › Site › Design & branding › Theme › Site wide**

### Post feeds

The homepage renders the following post feeds:
- `latest` — the latest posts
- `featured` — the featured posts
- `updated` — the posts sorted by updated date
- `categories` — the [categories](https://brightthemes.com/docs/thred#categories) list, with posts for each category

**Content feed layout** in **Settings › Site › Design & branding › Theme › Homepage** sets how the feeds are laid out:
- `tabs` (default) — the feeds as tabs, one shown at a time
- `stacked` — the feeds one below the other

With the `tabs` layout, **Default feed** (same group) sets the tab that is open when the page loads: `latest` (default), `featured`, `updated` or `categories`.

### Categories

The categories list is built from a page with the slug `home-categories`. Create a page in Ghost Admin, set its slug to `home-categories`, and add the tags you want as categories to that page. Each category shows its name, description (if set), a “View all” link, and the 5 latest posts for that tag.

## Header

The header is defined in `partials/header.hbs` and it renders:
- publication logo (with **Dark theme logo**, a separate logo for the dark color scheme)
- search button
- main action buttons: the CTA button, with the text and link from **CTA text** and **CTA link**, and the user menu

**Use portal links** is off by default: the sign-in and sign-up links go to the theme's own sign-in and sign-up pages (see the [page templates](https://brightthemes.com/docs/thred#page-templates)). Turn it on to use Ghost's Portal for the sign-in and sign-up flow instead.

All of these settings are in **Settings › Site › Design & branding › Theme › Site wide**.

## Left sidebar

The left sidebar is defined in `partials/sidebar-left.hbs` and it renders:
1. primary navigation (including [dropdown menus](https://brightthemes.com/docs/thred#dropdown-menus))
2. [categories](https://brightthemes.com/docs/thred#sidebar-categories)
3. [authors](https://brightthemes.com/docs/thred#sidebar-authors)
4. secondary navigation

Two settings in **Settings › Site › Design & branding › Theme › Site wide** control it:
- **Left sidebar** — shows the left sidebar on desktop (on by default)
- **Left sidebar user preference** — remembers whether a reader showed or hid the left sidebar, for their future visits (on by default)

### Sidebar categories

To add categories to the left sidebar, create a page with the slug `sidebar-categories` and add the tags you want to display to the page.

![Sidebar categories](../../../assets/docs/themes/theme-thred-sidebar-categories.webp)

### Sidebar authors

To add authors to the left sidebar, create a page with the slug `sidebar-authors` and add the authors you want to display to the page.

![Sidebar authors](../../../assets/docs/themes/theme-thred-sidebar-authors.webp)

## Right sidebar

The right sidebar is defined in `partials/sidebar-right.hbs` and it renders:
- author (only on posts)
- about — from the site settings (publication icon, publication name, publication description) and a subscribe form
- [follow](https://brightthemes.com/docs/thred#social-links)
- [recommendations](https://brightthemes.com/docs/thred#sidebar-recommendations)
- [CTA](https://brightthemes.com/docs/thred#sidebar-cta)
- [footer](https://brightthemes.com/docs/thred#footer)

**Right sidebar** in **Settings › Site › Design & branding › Theme › Site wide** (on by default) sets whether the right sidebar shows by default, on mobile and desktop.

### Sidebar recommendations

The recommendations come from Ghost's native [Recommendations](https://ghost.org/help/recommendations/) feature.
You can manage your recommendations in **Settings › Growth › Recommendations**.

### Sidebar CTA

To add the CTA to the right sidebar, create a page with the slug `sidebar-cta` and add the content you want to display. We recommend Ghost's [call to action card](https://ghost.org/help/cards/#call-to-action).

![Sidebar CTA](../../../assets/docs/themes/theme-thred-sidebar-cta.webp)

### Footer

The footer is defined in `partials/footer.hbs` and is part of the right sidebar. It displays a copyright notice with the year, the publication name, and the theme name (Thred).

## Post card

The post card is defined in `partials/post-card.hbs` and it renders:
- post title
- post excerpt
- post image
- post date
- post author
- post tags
- post reading time
- post comments count

**Post feed style** in **Settings › Site › Design & branding › Theme › Homepage** sets the default style:
- `list` — posts as a list
- `compact` (default) — posts as compact cards
- `cards` — posts as cards
- `articles` — posts as full articles

**Show comment count**, in the same group, shows the comment count on the cards (on by default).

Readers can also change the style of the feed on the homepage, with the feed style button in the top right corner of the feed.

## Templates

### Post templates

Thred includes 1 [post template](https://brightthemes.com/blog/ghost-custom-templates) in addition to the default. You choose it in the post settings, under **Template**:
- `custom-post-without-sidebar.hbs` — a post without the sidebar, for full-width content

Two settings in **Settings › Site › Design & branding › Theme › Post** change the post layout:
- **Show comment button** — a floating comment button on posts (on by default)
- **Enable syntax highlighting** — colors the code blocks of posts (off by default; see [syntax highlighting](https://brightthemes.com/docs/thred#syntax-highlighting))

### Page templates

The theme includes 7 page templates. You choose them in the page settings, under **Template**:
- `custom-template-account.hbs` — an [account page](https://thred.brightthemes.com/account/)
- `custom-template-authors.hbs` — an [authors page](https://thred.brightthemes.com/authors/)
- `custom-template-blank.hbs` — a page without header, footer and sidebars, like a landing page
- `custom-template-membership.hbs` — a [membership page](https://thred.brightthemes.com/membership/)
- `custom-template-signin.hbs` — a [sign-in page](https://thred.brightthemes.com/signin/)
- `custom-template-signup.hbs` — a [sign-up page](https://thred.brightthemes.com/signup/)
- `custom-template-tags.hbs` — a [tags page](https://thred.brightthemes.com/tags/)

## 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)).

**Color scheme** in **Settings › Site › Design & branding › Theme › Site wide** sets the default color scheme of the site:
- `system` (default) — follows the reader's device setting, light or dark
- `light` — the light color scheme
- `dark` — the dark color scheme

To change the colors, add the following in **Settings › Advanced › Code injection › Site header** and adjust the values.

For the **light** color scheme:

```html
<style>
  :root {
    --color-typ: hsl(0, 0%, 5%);
    --color-typ-tone: hsl(0, 0%, 30%);
    --color-typ-content: hsl(0, 0%, 25%);
    --color-bgr: hsl(0, 0%, 99%);
    --color-bgr-tone: hsl(0, 0%, 96%);
    --color-brd: hsl(0, 0%, 90%);
  }
</style>
```

For the **dark** color scheme:

```html
<style>
  html[data-color-scheme="dark"]:root {
    --color-typ: hsl(0, 0%, 90%);
    --color-typ-tone: hsl(0, 0%, 70%);
    --color-typ-content: hsl(0, 0%, 80%);
    --color-bgr: hsl(0, 0%, 4%);
    --color-bgr-tone: hsl(0, 0%, 9%);
    --color-brd: hsl(0, 0%, 15%);
  }
</style>
```

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 **Geist** for both headings and body.
You can change the fonts in **Settings › Site › Design & branding › Brand › Typography**, with several options for both body and headings. The theme has no font settings of its own.

## Syntax highlighting

Turn on **Enable syntax highlighting** in **Settings › Site › Design & branding › Theme › Post** (it's off by default) and the theme colors the code blocks in your posts to make them easier to read.

It uses [Shiki](https://shiki.matsu.io/) to highlight the code blocks, with these defaults:

| Setting | Default value |
|---------|---------------|
| LANGS | ['javascript', 'html', 'css', 'bash'] |
| DARK_THEME | 'github-dark' |
| LIGHT_THEME | 'github-light' |

See the [themes](https://shiki.matsu.io/themes) and the [languages](https://shiki.matsu.io/languages) Shiki supports.

To change them without editing the theme, add the following in **Settings › Advanced › Code injection › Site header** ([what code injection is](https://brightthemes.com/blog/ghost-code-injection)), changing the values as needed:

```html showLineNumbers
<script>
  THEME_CONFIG.SYNTAX.LANGS = ['javascript', 'html', 'css', 'bash', 'python', 'json'];
  THEME_CONFIG.SYNTAX.DARK_THEME = 'github-dark';
  THEME_CONFIG.SYNTAX.LIGHT_THEME = 'github-light';
</script>
```

## 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/thred#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": 24
}
```

### 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).

## 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

Frequently asked questions and useful snippets you can use to make some quick changes to your site.

### 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: 24px;
  --logo-w-mobile: auto;
  --logo-h-desktop: 28px;
  --logo-w-desktop: auto;
}
</style>
```

### How to hide "published with" from the footer?

In **Settings › Advanced › Code injection › Site header**, add:
```html
<style>[data-footer-ghost],[data-footer-theme]{display:none;}</style>
```

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