Skip to content
Bright Themes

How to install, set up and customize the Pulse 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 (set your Ghost site URL to open it in your Ghost Admin).

To upload the theme:

  1. Log in to Ghost Admin at yoursite.com/ghost/.
  2. Choose Upload theme and select pulse.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.
  3. 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.

Settings › Site › Theme › Change theme

Upload routes.yaml

Upload the theme's routes.yaml in Settings › Advanced › Labs (set your Ghost site URL to open it in your Ghost Admin), 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. 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.

Settings › Advanced › Labs › Beta features
routes.yaml
## routes.yaml

routes:
  /episodes/: 
    template: episodes
    controller: channel
    filter: tag:-hash-blog
    # data: page.episodes
  /rss/:
    template: rss
    content_type: text/xml

collections:
  /blog/:
    permalink: /blog/{slug}/
    template: blog
    filter: tag:hash-blog
  /:
    permalink: /{slug}/
    template: index
    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, which you change in Ghost Admin without code. Open Settings › Site › Design & branding (set your Ghost site URL to open it in your Ghost Admin) 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 (set your Ghost site URL to open it in your Ghost Admin).

Settings › Site › Design & branding › Theme

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

SettingGroupWhat it does
Color schemeSite wideSet the default color scheme of the site
Font headingsSite wideSet the heading font (when the Ghost 'Heading font' is set to theme default)
Font bodySite wideSet the body font (when the Ghost 'Body font' is set to theme default)
Header actionSite wideSet the main action for the header
Header searchSite wideShow the search icon in the header
Dark theme logoSite wideLogo for the dark theme
CTA textSite wideSet the main CTA button text
CTA linkSite wideSet the main CTA button URL
Hero headlineHomepageSet the homepage hero headline (you can include HTML)
Hero subheadingHomepageSet the homepage hero subheading
Hero actionHomepageSet the homepage hero main action
Hero styleHomepageSet the homepage hero section layout & style
Featured episodes sliderHomepageEnable a slider section showing all featured episodes
Podcast card styleHomepageSet the podcast card style
Styled episode numberHomepageEnable special styling on cards for episode numbers included in the title (format: 'EP X:')
Show feature imagePostShow the feature image in the post/episode hero section
Show author bioPostShow the authors/hosts at the end of the episode content

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. More in keeping your design settings.

Homepage

The homepage is defined by the home.hbs file and it has several sections based on your theme settings:

Note

Elements like the header, footer and CTA section are included in all other templates (posts, pages).

Hero

The hero section is set in Settings › Site › Design & branding › Theme › Homepage (set your Ghost site URL to open it in your Ghost Admin):

  1. Hero headline — the title of the hero section

    You can include HTML elements like links, or formatting to emphasize key text. Example from the demo:

    HTML
    A weekly podcast <span>inspiring</span> creators to turn <em>passion</em> into a <em>thriving business</em>
  2. Hero subheading — the subheading of the hero section

  3. Hero action — the main action of the hero section:

  4. Hero style — the layout of the hero section:

    • image on right & under header (default)
    • no image & centered
    • image on right
    • image on left
    • image below & centered
    • hidden — no hero section

The featured episodes slider is on by default; you can turn off Featured episodes slider in Settings › Site › Design & branding › Theme › Homepage (set your Ghost site URL to open it in your Ghost Admin).

The featured episodes section is implemented in the partials/home/featured-episodes.hbs file. The slider uses the Glide.js (opens in a new tab) library.

All featured posts are fetched and shown in the slider. You move through them with the arrows in the top right corner, or the bullet navigation below the slider.

About the show

To show the about the show section on the homepage:

  1. Open Pages in Ghost Admin.
  2. Create a page with the slug home-about.
  3. Add the content and a feature image, then publish the page.

Latest episodes

The latest episodes section is implemented in the partials/home/latest-episodes.hbs file.

Two settings in Settings › Site › Design & branding › Theme › Homepage (set your Ghost site URL to open it in your Ghost Admin) change how this section looks:

  1. Podcast card style — the layout of the episode cards:

    • vertical — the episode artwork on top, the episode details below
    • horizontal (default) — the artwork and the episode details side by side
    • bg-image — the episode artwork as the background of the card
  2. Styled episode number — off by default. When it’s on and the episode title follows the format EP X:, the episode number gets its own styling on the card.

Note

If the featured episodes slider is on, the latest episodes section leaves out the episodes marked as featured, so they don’t show twice.

Reviews

To show the reviews section on the homepage:

  1. Open Pages in Ghost Admin.
  2. Create a page with the slug home-reviews.
  3. Add the content and publish the page.

For the individual reviews, the demo uses the Product card (opens in a new tab) of the Ghost editor. You can also use external tools like Senja or Testimonial.to and add their embed code instead of product cards.

Important

The page slug must be home-reviews, and the page title is the section title.

About the hosts

To show the about the hosts section on the homepage:

  1. Open Pages in Ghost Admin.
  2. Create a page with the slug home-hosts.
  3. In the page settings, add the authors you want to highlight, then publish the page.

Important

The page slug must be home-hosts, and the page title is the section title.

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)
  • primary navigation
  • search button (if Header search is on; it’s off by default)
  • the main action, set with Header action

All of these settings are in Settings › Site › Design & branding › Theme › Site wide (set your Ghost site URL to open it in your Ghost Admin). The Header action options:

  • cta — a call-to-action button, with the text and link from CTA text and CTA link
  • listen (default) — a button that opens the podcast popup (#/podcast)
  • signin-signup — sign-in and sign-up links
  • subscribe — a subscribe button

CTA section

To show the CTA section above the footer:

  1. Open Pages in Ghost Admin.
  2. Create a page with the slug cta.
  3. Add the content and publish the page.

Note

The page’s feature image shows on the right and its content on the left side of the CTA section.

The footer is defined in partials/footer.hbs and it renders:

Templates

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

Pulse includes 1 post template in addition to the default. You choose it in the post settings, under Template:

Two settings in Settings › Site › Design & branding › Theme › Post (set your Ghost site URL to open it in your Ghost Admin) change the post layout:

  • Show feature image — shows the feature image in the post and episode hero section (on by default)
  • Show author bio — shows the authors (hosts) at the end of the episode content (on by default)

Collections

The theme’s routes.yaml sets up two collections and one channel. To use them you must upload the routes.yaml file.

  • / — the homepage collection: every post without the internal tag #blog, which is how the theme treats episodes. Posts live at /{slug}/.
  • /blog/ — the blog collection: every post with the internal tag #blog, rendered with the blog.hbs template. Blog posts live at /blog/{slug}/.
  • /episodes/ — a channel that lists every post without the #blog tag (your episodes), rendered with the episodes.hbs template. A channel doesn’t change the posts’ URLs; the episodes keep theirs from the homepage collection.

To write a blog post instead of an episode, add the internal tag #blog to the post.

Episodes page metadata

To control the metadata of the /episodes/ page (title, description, feature image), create a page with the same URL and turn on the data line in the routes file:

  1. Create a new page in Ghost Admin and set its Page URL to episodes.
  2. In routes.yaml, remove the # in front of the data line:
    YAML
      /episodes/: 
        template: episodes
        controller: channel
        filter: tag:-hash-blog
        data: page.episodes
  3. Upload the routes.yaml again.

Color customization

You can change the accent color in Settings › Site › Design & branding › Brand (set your Ghost site URL to open it in your Ghost Admin). The theme’s colors are CSS custom properties, so you can override them in Settings › Advanced › Code injection › Site header (set your Ghost site URL to open it in your Ghost Admin) (what code injection is).

Color scheme in Settings › Site › Design & branding › Theme › Site wide (set your Ghost site URL to open it in your Ghost Admin) 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 (set your Ghost site URL to open it in your Ghost Admin) and adjust the values.

For the light color scheme:

HTML
<style>
  :root {
    --color-typ: hsl(0 0% 15%);
    --color-typ-tone: hsl(0 0% 30%);
    --color-typ-content: hsl(0 0% 20%);
    --color-typ-reverse: hsl(0 0% 95%);
    --color-bgr: hsl(0 0% 100%);
    --color-bgr-tone: hsl(0 0% 97%);
    --color-bgr-opac: hsla(0 0% 100% / 75%);
    --color-bgr-reverse: hsl(0 0% 12%);
    --color-brd: hsl(0 0% 90%);
  }
</style>

For the dark color scheme (it also covers system on a device set to dark: the theme turns system into light or dark before the page draws):

HTML
<style>
  :root[data-color-scheme="dark"] {
    --color-typ: hsl(0 0% 90%);
    --color-typ-tone: hsl(0 0% 70%);
    --color-typ-content: hsl(0 0% 80%);
    --color-typ-reverse: hsl(0 0% 15%);
    --color-bgr: hsl(0 0% 10%);
    --color-bgr-tone: hsl(0 0% 12%);
    --color-bgr-opac: hsla(0 0% 0% / 50%);
    --color-bgr-reverse: hsl(0 0% 98%);
    --color-brd: hsl(0 0% 18%);
  }
</style>

Some useful tools for choosing colors and gradients:

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.

By default the theme uses Bricolage Grotesque for both headings and body.

You can change them with two settings in Settings › Site › Design & branding › Theme › Site wide (set your Ghost site URL to open it in your Ghost Admin), which apply when Ghost’s Heading font and Body font are set to Theme default:

  • Font headings — the font of the headings
  • Font body — the font of the rest of the text

Both have the same options: System, Bricolage Grotesque (default), Inter, Instrument Sans, Instrument Serif, Noto Serif Display, Sometype Mono, Syne and Urbanist.

Tip

System uses the reader’s system font and makes no requests to Google Fonts, which helps when GDPR is a concern.

To keep a Google font but serve the files from your own site, see self-hosting Google Fonts.

Podcast popup

The popup is defined in partials/podcast-popup.hbs and it includes the podcast links and a Ghost native subscribe form.

The podcast popup looks like Ghost’s Portal and opens the same way: any link with the href #/podcast, on any page of the site, opens it. The header’s listen action is such a link.

The podcast links show in three places:

The theme comes with icons for these podcast platforms:

  • Apple Podcasts (apple)
  • Spotify (spotify)
  • YouTube (youtube)
  • Overcast (overcast)
  • Castbox (castbox)
  • Podcast Addict (podcastaddict)
  • Pocket Casts (pocketcasts)
  • Podbean (podbean)
  • iHeartRadio (iheartradio)
  • Player FM (playerfm)
  • Podcast Republic (podcastrepublic)
  • Castro (castro)
  • RadioPublic (radiopublic)

To show any of these platforms, set its key (in brackets above) to your link: add the following in Settings › Advanced › Code injection › Site footer (set your Ghost site URL to open it in your Ghost Admin) (what code injection is). For example, to show Spotify and Apple Podcasts:

HTML
<script>
  podcasts.spotify = 'https://example.com/your-show' /* the link to your podcast on Spotify */
  podcasts.apple = 'https://example.com/your-show' /* the link to your podcast on Apple Podcasts */
</script>

Once a link is set, it shows everywhere the podcast links are used.

Note

To add a platform that isn’t listed, add its icon, then add a block like the other platforms’ to the partials/podcast-links.hbs file. You can find more badges at badges.podlink.com (opens in a new tab).

Podcast feed

The default Ghost RSS feed is made for blogs and newsletters. A podcast RSS feed is different: to work correctly, it needs additional information like a title, description, artwork, category and language.

An RSS feed for podcasts removes the need to upload new episodes to each platform by hand. Instead, podcast directories monitor RSS feeds and display the new information as it’s added to the feed.

For this reason Pulse comes with a dedicated RSS template (rss.hbs) and its own route (/rss/), which include the fields podcasts need.

Most of the information comes from your site, but you need to add a few things yourself. Here’s the RSS file; the highlighted lines are the ones to edit:

Handlebars
<?xml version="1.0" encoding="UTF-8"?>
<rss 
  version="2.0"
  xmlns:dc="http://purl.org/dc/elements/1.1/"
  xmlns:content="http://purl.org/rss/1.0/modules/content/"
  xmlns:atom="http://www.w3.org/2005/Atom"
  xmlns:media="http://search.yahoo.com/mrss/"
  xmlns:wfw="http://wellformedweb.org/CommentAPI/"
  xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
  xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
  xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd"
  xmlns:rawvoice="http://www.rawvoice.com/rawvoiceRssModule/"
  xmlns:googleplay="http://www.google.com/schemas/play-podcasts/1.0">

  <channel>
    <atom:link href="{{@site.url}}/rss/" rel="self" type="application/rss+xml" />
    <title>{{@site.title}}</title>
    <link>{{@site.url}}</link>
    <description>{{@site.description}}</description>
    <language>{{@site.locale}}</language>
    <copyright>{{@site.title}} Copyright {{date format="YYYY"}}</copyright>
    <lastBuildDate>{{date format="ddd, DD MMM YYYY HH:mm:ss ZZ"}}</lastBuildDate>
    <itunes:author>{{@site.title}}</itunes:author>
    <itunes:summary>{{@site.description}}</itunes:summary>
    <itunes:owner>
      <itunes:name>Your Name</itunes:name>
      <itunes:email>youremail@example.com</itunes:email>
    </itunes:owner>
    <itunes:explicit>no</itunes:explicit>
    <itunes:image href="{{img_url @site.icon absolute="true"}}" />
    <itunes:category text="Technology"></itunes:category>

    {{#get "posts" filter="tag:-hash-blog" include="authors,tags" as |episode|}}
      {{#foreach episode}}
        <item>
          <title>{{title}}</title>
          <link>{{url absolute="true"}}</link>
          <description>{{custom_excerpt}}</description>
          <pubDate>{{date format="ddd, DD MMM YYYY HH:mm:ss ZZ"}}</pubDate>
          <guid isPermaLink="false"><![CDATA[ {{id}} ]]></guid>
          <category><![CDATA[ {{primary_tag.name}} ]]></category>
          <content:encoded><![CDATA[ {{content}} ]]></content:encoded>
          <enclosure url="{{og_description}}" length="0" type="audio/mpeg" />
          <itunes:title>{{title}}</itunes:title>
          <itunes:author>{{primary_author.name}}</itunes:author>
          <itunes:subtitle>{{custom_excerpt}}</itunes:subtitle>
          <itunes:summary><![CDATA[ {{content}} ]]></itunes:summary>
          {{#if feature_image}}
            <itunes:image href="{{img_url feature_image absolute="true"}}" />
          {{/if}}
          <itunes:explicit>no</itunes:explicit>
        </item>
      {{/foreach}}
    {{/get}}
  </channel>

</rss>
  1. Add the owner information (lines 26 and 27)

    • replace the Your Name placeholder with your name
    • replace the youremail@example.com placeholder with your email address
  2. Edit or add your category (topic) on line 31; in this example the category is Technology. You can add more categories by copying the line and changing the text value.

  3. To host your podcast files, you have at least two options:

    • Ghost has audio file support, so you can upload your file in Ghost using the audio card.
    • You can use an external service or CDN, for example CloudFront (opens in a new tab)

For the feed to link each episode’s audio file, there is one manual step per episode (post): in the post settings, open Facebook card and add the link to the episode file in the Facebook description field (line 43 reads it).

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 (set your Ghost site URL to open it in your Ghost Admin) (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.

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.

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 (opens in a new tab), 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. Turn them on in Settings › Membership › Access (set your Ghost site URL to open it in your Ghost Admin), 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 (opens in a new tab). 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 (opens in a new tab) 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):

Handlebars
{{>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).

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 (set your Ghost site URL to open it in your Ghost Admin).

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 (set your Ghost site URL to open it in your Ghost Admin) (what code injection is). 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)

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

Text
|__ 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.

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.

Three ways, from safest to most flexible

Start a coding assistant on the theme

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

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 (set your Ghost site URL to open it in your Ghost Admin).

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 (set your Ghost site URL to open it in your Ghost Admin), 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 (opens in a new tab), 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.

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, you can work on the theme’s source. The theme is built with Tailwind CSS (opens in a new tab) and Alpine.js (opens in a new tab), and its assets are compiled and minified with Vite (opens in a new tab).

You need Node.js (opens in a new tab) and a local install of Ghost. 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 (opens in a new tab), 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 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 (set your Ghost site URL to open it in your Ghost Admin) (what code injection is), add the following and change the values as needed:

HTML
<style>
:root {
  --logo-h-mobile: 28px;
  --logo-w-mobile: auto;
  --logo-h-desktop: 32px;
  --logo-w-desktop: auto;
}
</style>

The podcast links are added to the page by the theme’s script, so the snippet waits for it. In Settings › Advanced › Code injection › Site footer (set your Ghost site URL to open it in your Ghost Admin), add the following:

HTML
<script>
  document.addEventListener('alpine:initialized', () => {
    document.querySelectorAll('[data-podcast-links] a').forEach(link => {
      link.setAttribute('target', '_blank');
      link.setAttribute('rel', 'noopener');
    });
  });
</script>

Something missing or unclear? Ask support.

Can’t find what you need?

Ask the person who builds the themes. Tell us what you are trying to do and we will point you the right way.