# Rinne documentation

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

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

How to install, set up and customize the Rinne 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 `rinne.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
## data: page.<slug> takes a route's title, description and image from the page with that slug. Commented out, it waits until that page exists.
routes:

collections:
  # Homepage: every post without the #blog internal tag
  /:
    permalink: /{slug}/
    template: index
    filter: tag:-hash-blog
  # Blog: the posts with the #blog internal tag
  /blog/:
    permalink: /{slug}/
    template: blog
    # data: page.blog
    filter: tag:hash-blog

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 |  |
| UI font family | Site wide | The font of buttons, navigation, labels and post info |
| Header position | Site wide |  |
| Use portal links | Site wide |  |
| CTA headline | Site wide |  |
| CTA description | Site wide |  |
| CTA button text | Site wide |  |
| CTA button link | Site wide |  |
| Tag template feed style | Site wide |  |
| Hero image style | Homepage |  |
| Hero image filter | Homepage |  |
| Resources filter position | Homepage |  |
| Resources feed layout | Homepage |  |
| Resources card image | Homepage |  |
| Image lightbox | Post |  |

> [!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 layout is defined in the `index.hbs` template and has the following sections (besides the [header](https://brightthemes.com/docs/rinne#header) and footer):

- hero
- resources
- blog
- CTA section

### Hero

By default the hero title and description are the site's title and description (from **Settings › General settings › Title & description**),
and the image is the publication cover (from **Settings › Site › Design & branding › Brand › Publication cover**).

The hero's text and button come from four settings in **Settings › Site › Design & branding › Theme › Site wide**; the subscribe box in the post sidebar uses the first two:

- **CTA headline** — the title. You can highlight parts of it with the `<span>` tag, which shows the text in your brand color, for example:

  ```html
  All the <span>best resources</span> in one place
  ```

- **CTA description** — the description
- **CTA button text** — the button text (default `Subscribe`)
- **CTA button link** — the button link. The default, `subscribe-form`, shows a subscribe form instead of a button.

**Hero image style** in **Settings › Site › Design & branding › Theme › Homepage** sets the style of the hero section:

- [`background-full`](https://rinne.brightthemes.com/) (default) — the hero image as a full-width background image
- `background` — the hero image as a background image
- `side` — the hero image on the side
- `bottom` — the hero image below the title and button
- `hidden` — no hero image

You can set CSS filters for the hero image with **Hero image filter**, in the same group.
This is useful when the image is in the background and you want more contrast for the title and description.
All valid [CSS filters](https://developer.mozilla.org/en-US/docs/Web/CSS/filter) can be used and you can combine multiple filters.
Here are some examples:

- contrast and brightness filter:

  ```css
  brightness(0.75) contrast(1.1)
  ```

- grayscale filter:

  ```css
  grayscale(100%)
  ```

- sepia filter:

  ```css
  sepia(100%)
  ```

### Resources

New posts appear in the resources section (unless they have the `#blog` tag).
The resources filters change the feed to show the cards of the selected category. Each filter's link (such as `#design`) opens the homepage with that category picked, so you can share a filtered view.

The homepage loads every page of resources right away, so the filters cover all of them. To show a **Load more** button instead, see [the code snippets](https://brightthemes.com/docs/rinne#code-snippets).

The filter's categories are the tags of a page you create for them:

1. In Ghost Admin, open **Pages** and choose **New page**.
2. Set the **Page URL** to `home-filters` in the page settings.
3. Add the tags to show as categories, in the order you want them. The page's content isn't shown.
4. Choose **Publish**. Leave the page out of your navigation.

The same categories show in the footer and on the [resources page](https://brightthemes.com/docs/rinne#pages). Without the page, or without tags on it, there are no categories.

> [!NOTE]
> The filter image and color are taken from the tag, set in **Tags** in Ghost Admin:

![Resources filter tag image](../../../assets/docs/themes/theme-rinne-tag-image.webp)

To customize this section, change the following settings in **Settings › Site › Design & branding › Theme › Homepage**:

1. **Resources filter position** — the position of the filters:

   - `sidebar` (default) — the filters as a sidebar on desktop
   - `top` — the filters as a scrollable bar above the resource cards
   - `hidden` — no filters

2. **Resources feed layout** — the feed layout:

   - `list` — the cards as list items
   - `grid` (default) — the cards as grid items

3. **Resources card image** — the card image's aspect ratio and size:
   - `small` (default) — 48px tall, at the image's own width
   - `medium` — 72px tall
   - `large` — 96px tall
   - `wide 4/3` — `4/3` aspect ratio
   - `wide 16/9` — `16/9` aspect ratio
   - `hidden` — no card image

> [!NOTE]
> Featured resources (posts) show first.

> [!NOTE]
> For a resource card to show the external link, set the post's canonical URL
  in the post settings, under **Meta data › Canonical URL**.

### Blog

The blog section shows on the homepage once at least one post has the internal tag `#blog`.
The post cards show:

- the feature image with a `16/9` aspect ratio
- one tag assigned to the post
- the visibility (for members and tiers)
- title & excerpt
- author, date & reading time

The section shows up to `3` posts.
You can change this section in `partials/blog-section.hbs`, and the post cards in `partials/post-card.hbs`.

### CTA section

The CTA section above the footer shows the content of a page:

1. In **Pages**, create a page and set its **Page URL** to `section-cta` in the page settings.
2. Add a **Call to action** card, or a **Signup** card, and design it in the editor: layout, image, background color, text and button. Start its text with bold words for the headline, then a line break (Shift+Enter) and the rest: the bold words show larger, in the heading font. In the minimal layout, the image shows on the right.
3. Set who sees each card with its visibility: visitors, free members or paid members. For example, one card that asks visitors to subscribe and another that thanks members.
4. Publish it. Leave it out of your navigation.

Without the page, there's no CTA section.

## Header

The header shows the publication logo and the primary navigation, with [dropdown menus](https://brightthemes.com/docs/rinne#dropdown-menus).

Two settings in **Settings › Site › Design & branding › Theme › Site wide** change it:
- **Header position** — `normal` (default), `sticky` or `floating`
- **Use portal links** — on by default: the sign-in, sign-up and account links open Ghost's Portal. Turn it off to use the theme's own [sign-in, sign-up and account pages](https://brightthemes.com/docs/rinne#pages) instead (create them first).

## Templates

The default post layout is defined by the `post.hbs` template and the default page
layout by the `page.hbs` template.

The default post layout is made for resources: it shows the feature image with a `1/1` aspect ratio
on the left, next to the title, excerpt and author info.

### Post templates

Rinne includes 5 [post templates](https://brightthemes.com/blog/ghost-custom-templates) in addition to the default. You choose one in **Post settings › Template**:

- **Post With Background Image** (`custom-post-with-background-image.hbs`) — the feature image in the background
- **Post With Full Width Background Image** (`custom-post-with-full-width-background-image.hbs`) — the feature image as a full-width background
- **Post With Sidebar** (`custom-post-with-sidebar.hbs`) — a sidebar beside the post content (on desktop); the sidebar is `partials/sidebar.hbs`
- **Post With Table Of Contents And Sidebar** (`custom-post-with-table-of-contents-and-sidebar.hbs`) — a [table of contents](https://brightthemes.com/docs/rinne#table-of-contents) on the left and the sidebar on the right of the post content
- **Post With Wide Image** (`custom-post-with-wide-image.hbs`) — a wide feature image

> [!NOTE]
> Before 2.0 these templates were named `custom-with-…`. A post that used one shows the default layout until you pick its template again (see [Upgrade to v2](https://brightthemes.com/docs/rinne#upgrade)).

**Image lightbox** in **Settings › Site › Design & branding › Theme › Post** (on by default) opens the post's images in a lightbox.

After the content, a post shows its tags, a **Share** button, which opens Ghost's share window (the post's link to copy and the networks to share it on), and the author box.

### Page templates

Two page templates make directory pages; you choose one in **Page settings › Template**:

- **Template Directory** (`custom-template-directory.hbs`) — a [directory page](https://brightthemes.com/docs/rinne#directory-pages)
- **Template Directory With Main Topic** (`custom-template-directory-with-main-topic.hbs`) — a [directory page with a main topic](https://brightthemes.com/docs/rinne#directory-pages-with-main-topic)

> [!NOTE]
> Before 2.0 these templates were named `custom-directory.hbs` and `custom-directory-with-main-topic.hbs`. A page that used one shows the default page layout until you pick its template again (see [Upgrade to v2](https://brightthemes.com/docs/rinne#upgrade)).

The other page templates (Signup, Resources…) are described under [Pages](https://brightthemes.com/docs/rinne#pages).

### Tag pages

**Tag template feed style** in **Settings › Site › Design & branding › Theme › Site wide** sets how tag pages list their posts: `list` (default) or `resources`.

### Directory pages

The filters of a directory page sit where **Resources filter position** puts them (in **Settings › Site › Design & branding › Theme › Homepage**: `sidebar`, `top` or `hidden`), as on the homepage.

You can create as many directory pages as you need from Ghost Admin:

1. In Ghost Admin, open **Pages**.
2. Choose **New page**.
3. In the page settings, under **Template**, select **Template Directory**.
4. Add tags to the page: they are the filters and fetch the relevant posts. The page's content shows below the resources.

![Rinne directory page setup](../../../assets/docs/docs/doc-rinne-directory.webp)

Here's how that page is rendered on the demo:
[rinne.brightthemes.com/directory/](https://rinne.brightthemes.com/directory/)

### Directory pages with main topic

A directory page can also have a main topic, with filters within that topic:

1. In Ghost Admin, open **Pages**.
2. Choose **New page**.
3. In the page settings, under **Template**, select **Template Directory With Main Topic**.
4. Add tags to the page: the primary tag sets the topic of the directory, and the other tags are the filters within that topic.

Here's an example:

![Rinne directory with main topic setup](../../../assets/docs/docs/doc-rinne-directory-with-main-topic.webp)

Here's how that page is rendered on the demo:
[rinne.brightthemes.com/directory-topic/](https://rinne.brightthemes.com/directory-topic/)

## Pages

The theme's own pages are pages you create in Ghost Admin, each with one of the theme's page templates. Nothing goes in `routes.yaml` for them: the theme's `routes.yaml` only adds the [blog](https://brightthemes.com/docs/rinne#blog). You get the page's title, excerpt, feature image and SEO fields, and you can add it to your navigation.

To create one:

1.  Log in to Ghost Admin at `yoursite.com/ghost/`.
2.  Open **Pages** and choose **New page**.
3.  Enter the title. In the page settings, set the **Page URL** to the slug below and pick the **Template**.
4.  Choose **Publish**.

| Page URL | Template | What it shows |
|---|---|---|
| `signup` | **Template Signup** (`custom-template-signup.hbs`) | The sign-up form, with the page's feature image beside it |
| `signin` | **Template Signin** (`custom-template-signin.hbs`) | The sign-in form, with the page's feature image beside it |
| `account` | **Template Account** (`custom-template-account.hbs`) | The signed-in member's details and subscription |
| `membership` | **Template Membership** (`custom-template-membership.hbs`) | Your tiers, with their prices and benefits |
| `resources` | **Template Resources** (`custom-template-resources.hbs`) | A section per resource category, with its first five resources |
| `recommendations` | **Template Recommendations** (`custom-template-recommendations.hbs`) | The sites you recommend |

The [directory page templates](https://brightthemes.com/docs/rinne#page-templates) work on pages with any URL.

> [!NOTE]
> The theme links to `/signup/`, `/signin/`, `/account/` and `/membership/`. With **Use portal links** on (in **Settings › Site › Design & branding › Theme › Site wide**, on by default), those links open Ghost's Portal instead, and the members pages are optional.

### Sign-up and sign-in pages

These pages have no header or footer: the site's logo at the top left links home. Give the page a feature image to show it on the right half of the screen on large screens; without one, the form is centered.

### Membership

The membership page shows your tiers with a monthly and yearly choice, then the page's own content, so you can add text below them in the editor. The tier names, prices and benefits come from **Settings › Membership › Tiers**: edit the tiers there or add new ones.

### Resources

The resources page shows a section for each resource category: the tags of the `home-filters` page (see [Homepage](https://brightthemes.com/docs/rinne#homepage)), in that page's order. Each section shows the tag's image, name, resource count and description, and its first five resources, with a link to the tag page when it has more. The page's own content shows below the sections.

### Recommendations

The recommendations page shows the sites you recommend in **Settings › Growth › Recommendations**, and a button that opens the full list in Portal. It shows them when recommendations are turned on there.

### Blog

The blog is a collection: every post with the internal tag `#blog`, listed with the `blog.hbs` template. Blog posts keep the `/{slug}/` URL. It needs the theme's `routes.yaml` ([upload it](https://brightthemes.com/docs/rinne#routes)):

```yaml
/blog/:
  permalink: /{slug}/
  template: blog
  # data: page.blog
  filter: tag:hash-blog
```

To take the blog's title, description and image from a page, create a page with the `blog` slug, remove the `#` in front of `data` and upload `routes.yaml` again.

## Color customization

You can change the accent color in **Settings › Site › Design & branding › Brand**. The theme picks black or white text for it, whichever reads better.

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

Readers can switch with the select at the bottom of the footer (System, Light or Dark). Their choice is saved in their browser.

### Change the colors

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)). Add the following and adjust the values.

For the **light** color scheme:

```html
<style>
  :root {
    --color-typ: hsl(0 0% 15%);          /* text */
    --color-typ-tone: hsl(0 0% 42%);     /* muted text */
    --color-typ-content: hsl(0 0% 25%);  /* the text of posts, excerpts and the footer */
    --color-bgr: hsl(0 0% 100%);         /* background */
    --color-bgr-tone: hsl(0 0% 97%);     /* muted background */
    --color-brd: hsl(0 0% 92%);          /* borders */
  }
</style>
```

For the **dark** color scheme, use the same names under a second selector. It applies whenever the site shows dark, whether the reader chose it or their device did:

```html
<style>
  [data-color-scheme="dark"]:root {
    --color-typ: hsl(0 0% 85%);
    --color-typ-tone: hsl(0 0% 62%);
    --color-typ-content: hsl(0 0% 75%);
    --color-bgr: hsl(0 0% 12%);
    --color-bgr-tone: hsl(0 0% 10%);
    --color-brd: hsl(0 0% 20%);
  }
</style>
```

The values above are the theme's defaults. The reversed colors (`--color-typ-reverse` and `--color-bgr-reverse`) follow the background and text colors by themselves.

The star ratings use `--color-rating` (`hsl(51 100% 50%)` by default), and a tag's own color, set in **Tags** in Ghost Admin, colors its labels and filter categories.

For example, a purple palette for both color schemes:

```html
<style>
  :root {
    --color-typ: hsl(275 50% 15%);
    --color-typ-tone: hsl(275 20% 38%);
    --color-typ-content: hsl(275 50% 20%);
    --color-bgr: hsl(275 50% 98%);
    --color-bgr-tone: hsl(275 50% 94%);
    --color-brd: hsl(275 40% 90%);
  }
  [data-color-scheme="dark"]:root {
    --color-typ: hsl(275 50% 90%);
    --color-typ-tone: hsl(275 20% 70%);
    --color-typ-content: hsl(275 40% 84%);
    --color-bgr: hsl(275 50% 6%);
    --color-bgr-tone: hsl(275 50% 10%);
    --color-brd: hsl(275 40% 20%);
  }
</style>
```

## 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 **Figtree** for headings and body. To use other fonts, set them in Ghost's own typography settings, in **Settings › Site › Design & branding › Brand › Typography**: they take over when set.

**UI font family** in **Settings › Site › Design & branding › Theme › Site wide** sets the font of the interface (the navigation, buttons, labels and post info):
- `body` (default) — the body font
- `heading` — the heading font
- `system` — the reader's system font, with nothing to download
- `serif` — the reader's system serif font
- `mono` — the reader's system monospace font

> [!NOTE]
> Before 2.0, the **Font family** setting chose the font. It's gone in 2.0: set the fonts in Ghost's typography settings (see [Upgrade to v2](https://brightthemes.com/docs/rinne#upgrade)).

## Resource ratings

Ratings can be assigned to resources using specific internal tags:
- `#1-star` (slug: `hash-1-star`)
- `#2-star` (slug: `hash-2-star`)
- `#3-star` (slug: `hash-3-star`)
- `#4-star` (slug: `hash-4-star`)
- `#5-star` (slug: `hash-5-star`)

The ratings show on the resource cards and in the hero section of the resource post.

## Read next

All post templates have a "Read next" section, populated by related posts
based on the current post's tags. The section fetches up to 5 posts that
have at least one tag in common with the current post (including internal tags).

To change the read next section, edit the `partials/related.hbs` partial file.

For example, to look only at the primary tag instead of all tags, change the filter of the `{{#get}}` from this:
```hbs
filter="tags:[{{post.tags}}]+id:-{{post.id}}"
```
To this:
```hbs
filter="tags:[{{post.primary_tag.slug}}]+id:-{{post.id}}"
```

The section then fetches the posts that have the current post's primary tag (its first public tag).

## Table of contents

The table of contents is generated using the [Tocbot](https://tscanlin.github.io/tocbot/)
library, built into the theme. You can use the table of contents
in two ways:

1.  Using the **Post With Table Of Contents And Sidebar** [template](https://brightthemes.com/docs/rinne#post-templates) (`custom-post-with-table-of-contents-and-sidebar.hbs`).
2.  Using the internal tag `#toc`.

With the first option, you get a fixed table of contents on the left side next
to the post content, and a sidebar on the right. You choose the template in **Post settings › Template**.

With the second option, you get a floating table of contents at the top right of the page,
on posts and pages, with the default template or any post template.

To change the table of contents layout or the Tocbot configuration, edit the `partials/toc.hbs` file.

## 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/rinne#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": 300
  },
  "m": {
    "width": 600
  },
  "l": {
    "width": 1000
  },
  "xl": {
    "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.

## Syntax highlighting

How the theme loads Prism.js only on posts tagged #syntax-highlight, and how to load it everywhere or change languages.

The theme highlights code with [Prism](https://prismjs.com/), the library our guide to [syntax highlighting in Ghost](https://brightthemes.com/blog/ghost-syntax-highlighting) uses too. To turn it on for a post or page, add the internal tag `#syntax-highlight` to it. Posts and pages without the tag don't load Prism at all, so they stay lighter.

To highlight code on every post and page without the tag, edit `partials/syntax-highlight.hbs` and remove the condition that checks for it. The same partial loads Prism (its core, with HTML, CSS and JavaScript) and its color theme from a CDN, so that's also where you change the version or the colors, or add the script of another language or a plugin.

## 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`)
- Turkish (`tr.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

Short snippets for common changes. Add them in **Settings › Advanced › Code injection › Site header** ([what code injection is](https://brightthemes.com/blog/ghost-code-injection)). They use the theme's `data-*` attributes and settings, which stay the same across updates.

### How to show a Load more button instead of loading every resource?

The homepage loads every page of resources right away, so the filters cover all of them. To load them a page at a time, with a **Load more** button, add:

```html
<script>window.THEME_CONFIG.AUTOLOAD_RESOURCES = false</script>
```

Choosing a category still loads the resources not on the page yet, so the filter covers every resource. To show more resources on the first page, raise the [posts per page](https://brightthemes.com/docs/rinne#posts-per-page).

### How to resize the header logo?

The header logo is 36px tall on every screen size. Adjust the height value to your preference:

```html
<style>[data-brand] img { height: 42px; }</style>
```

### How to resize the footer logo?

The footer logo is 48px tall. Adjust the height value to your preference:

```html
<style>[data-footer] img { height: 50px; }</style>
```

### How to remove the color scheme select?

```html
<style>[data-color-scheme-select] { display: none !important; }</style>
```

### How to stop featured posts from showing first in the resources section?

```html
<style>[data-resource-card][data-featured] { order: initial; }</style>
```

### How to remove the colors from the resource card tags?

```html
<style>[data-resource-card] a[href*="/tag/"] { --color-accent: var(--color-typ) !important; }</style>
```

### How to hide the blog section on the homepage?

```html
<style>[data-blog-section] { display: none !important; }</style>
```

### How to hide the tags at the end of the posts?

```html
<style>[data-post-tags] { display: none !important; }</style>
```

## Upgrade to v2

What changes when you update a Rinne 1.x site to 2.0, and the steps to move it over.

We rebuilt Rinne from the ground up for 2.0: the same layouts and settings, on a new codebase, so almost every file has changed. If you've edited the theme's files, start from the new version and bring your changes over. These things change for a site that runs 1.x:

- **The post templates are renamed** from `custom-with-…` to `custom-post-with-…`, shown in Ghost as **Post With Background Image** and so on (see [Templates](https://brightthemes.com/docs/rinne#templates)). A post that used one shows the default layout until you pick its template again.
- **The directory page templates are renamed** from `custom-directory.hbs` and `custom-directory-with-main-topic.hbs` to `custom-template-directory.hbs` and `custom-template-directory-with-main-topic.hbs`. A directory page shows the default page layout until you pick its template again.
- **The theme's own pages are pages with a template** instead of entries in `routes.yaml`: sign up, sign in, account, membership, resources and recommendations (see [Pages](https://brightthemes.com/docs/rinne#pages)). The theme's `routes.yaml` now holds only the homepage and the blog.
- **The resource categories come from a page.** The **Resources filter slugs** setting is gone: the categories of the homepage filter, the footer and the resources page are the tags of a page with the slug `home-filters`, in that page's order (see [Homepage](https://brightthemes.com/docs/rinne#homepage)).
- **The CTA section comes from a page.** The section above the footer shows the content of a page with the slug `section-cta`, such as a **Call to action** card; the CTA settings now set only the hero and the subscribe box in the post sidebar (see [Homepage](https://brightthemes.com/docs/rinne#homepage)).
- **The homepage loads every resource.** Before 2.0 it loaded one page at a time unless you turned on autoload in code injection; now autoload is on by default (see [Code snippets](https://brightthemes.com/docs/rinne#code-snippets) to turn it off).
- **The Font family setting is gone.** Ghost's own typography settings take its place, with the new **UI font family** setting (see [Typography](https://brightthemes.com/docs/rinne#typography)). A site that picked another font there shows Figtree until you set Ghost's typography.
- **Code injection names changed.** `themeGlobal` is now `window.THEME_CONFIG`, and the CSS custom properties have new names (below). Class names such as `.resource-card` or `.header__brand` are gone: style the `data-*` attributes instead, such as `[data-resource-card]` or `[data-brand]`.

| Before 2.0 | In 2.0 |
|---|---|
| `themeGlobal.imageLightbox` | `window.THEME_CONFIG.ENABLE_IMAGE_ZOOM` (the **Image lightbox** setting) |
| `themeGlobal.autoloadResources` | `window.THEME_CONFIG.AUTOLOAD_RESOURCES` (on by default) |
| `--color-text` | `--color-typ` |
| `--color-text-acc` | `--color-typ-content` |
| `--color-text-reverse` | `--color-typ-reverse` |
| `--color-bg` | `--color-bgr` |
| `--color-bg-acc` | `--color-bgr-tone` |
| `--color-bg-reverse` | `--color-bgr-reverse` |
| `--color-border` | `--color-brd` |
| `--color-gold` | `--color-rating` |
| `--font-headings` | `--font-heading` |
| `--global-max-width` | `--container-site` |
| `--global-content-width` | `--container-content` |
| `--global-wide-width` | `--container-wide` |
| `--global-radius` | `--radius-theme` |
| `--global-hero-img-filter` | `--hero-image-filter` (the **Hero image filter** setting) |

The other `--global-…` variables, `--color-bg-base`, `--color-bg-base-reverse` and `--color-brand-hsl` are gone, with nothing in their place.

### Move a site over

After you upload Rinne 2.0 in **Settings › Site › Theme › Change theme**:

1. Upload the new `routes.yaml` from the theme's zip in **Settings › Advanced › Labs** (see [Upload routes.yaml](https://brightthemes.com/docs/rinne#routes)).
2. In **Pages**, create a page for each slug with the matching **Template** in its page settings: `signup` (Template Signup), `signin` (Template Signin), `account` (Template Account), `membership` (Template Membership), `resources` (Template Resources) and `recommendations` (Template Recommendations). Create only the ones your site uses.
3. Create a page with the slug `home-filters` and add the tags from your old **Resources filter slugs** setting to it, in the order you want them. Leave it out of your navigation.
4. To keep a CTA section above the footer, create a page with the slug `section-cta` with a **Call to action** or **Signup** card in it. Leave it out of your navigation.
5. Pick the template again in **Post settings › Template** on the posts that used one of the post templates, and in **Page settings › Template** on your directory pages.
6. If your site used another font, set it in **Settings › Site › Design & branding › Brand › Typography**. Update any code injection that uses the old names in the table above.

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