How to install, set up and customize the Pulse Ghost theme, from its design settings to theme development.
Install the theme
To upload the theme:
- Log in to Ghost Admin at
yoursite.com/ghost/. - Open Settings › Site › Theme (set your Ghost site URL to open it in your Ghost Admin) and choose Change theme.
- 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. - 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.
Upload routes.yaml
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:
- Log in to Ghost Admin at
yoursite.com/ghost/. - Open Settings › Advanced › Labs (set your Ghost site URL to open it in your Ghost Admin), choose Open, then the Beta features tab.
- In the Routes row, open the menu next to Edit, choose Upload file and select the
routes.yamlfrom 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.
## 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
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).
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 |
| 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 action | Site wide | Set the main action for the header |
| Header search | Site wide | Show the search icon in the header |
| Dark theme logo | Site wide | Logo for the dark theme |
| 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 |
| Hero action | Homepage | Set the homepage hero main action |
| Hero style | Homepage | Set the homepage hero section layout & style |
| Featured episodes slider | Homepage | Enable a slider section showing all featured episodes |
| Podcast card style | Homepage | Set the podcast card style |
| Styled episode number | Homepage | Enable special styling on cards for episode numbers included in the title (format: 'EP X:') |
| Show feature image | Post | Show the feature image in the post/episode hero section |
| Show author bio | Post | Show 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):
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:
HTMLA weekly podcast <span>inspiring</span> creators to turn <em>passion</em> into a <em>thriving business</em>Hero subheading — the subheading of the hero section
Hero action — the main action of the hero section:
podcast-links(default) — links to your podcast platformscta— a call-to-action button, with the text and link from CTA text and CTA link in Settings › Site › Design & branding › Theme › Site wide (set your Ghost site URL to open it in your Ghost Admin)subscribe— a subscribe form for collecting emailsnone— no action
Hero style — the layout of the hero section:
image on right & under header(default)no image & centeredimage on rightimage on leftimage below & centeredhidden— no hero section
Featured episodes
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:
- Open Pages in Ghost Admin.
- Create a page with the slug
home-about. - 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:
Podcast card style — the layout of the episode cards:
vertical— the episode artwork on top, the episode details belowhorizontal(default) — the artwork and the episode details side by sidebg-image— the episode artwork as the background of the card
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:
- Open Pages in Ghost Admin.
- Create a page with the slug
home-reviews. - 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:
- Open Pages in Ghost Admin.
- Create a page with the slug
home-hosts. - 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.
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)
- 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 linklisten(default) — a button that opens the podcast popup (#/podcast)signin-signup— sign-in and sign-up linkssubscribe— a subscribe button
CTA section
To show the CTA section above the footer:
- Open Pages in Ghost Admin.
- Create a page with the slug
cta. - 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.
Footer
The footer is defined in partials/footer.hbs and it renders:
- publication logo and site description
- a subscribe form
- secondary navigation
- social links
- podcast links
- copyright
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:
custom-blog-post.hbs— a template for the posts of the blog collection
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 theblog.hbstemplate. Blog posts live at/blog/{slug}/./episodes/— a channel that lists every post without the#blogtag (your episodes), rendered with theepisodes.hbstemplate. 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:
- Create a new page in Ghost Admin and set its Page URL to
episodes. - In
routes.yaml, remove the#in front of thedataline:YAML/episodes/: template: episodes controller: channel filter: tag:-hash-blog data: page.episodes - Upload the
routes.yamlagain.
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 darklight— the light color schemedark— 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:
<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):
<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:
- Fuel HSL color picker (opens in a new tab)
- Gradients | Components AI (opens in a new tab)
- CSS Gradient Generator (opens in a new tab)
Typography
Note
Ghost has custom fonts (opens in a new tab) of its own: you set the heading and body fonts in Settings › Site › Design & branding › Brand › Typography (set your Ghost site URL to open it in your Ghost Admin).
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.
Podcast links
The podcast links show in three places:
- the hero section, when Hero action is
podcast-links - the footer
- the podcast popup
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:
<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:
<?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>Add the owner information (lines
26and27)- replace the
Your Nameplaceholder with your name - replace the
youremail@example.complaceholder with your email address
- replace the
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.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).
Dropdown menus
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.
Ghost config
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:
"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:
"image_sizes": {
"xxs": {
"width": 30
},
"xs": {
"width": 100
},
"s": {
"width": 320
},
"m": {
"width": 640
},
"l": {
"width": 960
},
"xl": {
"width": 1280
},
"xxl": {
"width": 2000
}
}Comments
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 memberPaid-members only— signed-in members with an active paid subscriptionNobody— 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
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:
- Find the icon on Tabler Icons (opens in a new tab) and select it: this copies its SVG code.
- In
partials/icons/, create a file named after it, for examplecamera.hbs. - Paste the code into the file and save it.
For example, the camera icon copies as:
<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):
{{>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
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
- Telegram
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:
<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
Each post has share buttons for:
- X
- Bluesky (not in every theme)
- Copy link
To add or remove one, edit the theme’s share partial: partials/social-share.hbs (partials/share-links.hbs in Thred).
Translations
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 (set your Ghost site URL to open it in your Ghost Admin).
To change a translation, edit its file in the theme’s locales directory:
|__ locales
| |__ de.json
| |__ en.json
| |__ es.json
| |__ fr.jsonFor 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
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
- Settings, no code. Colors, fonts, layouts and sections are in Settings › Site › Design & branding (set your Ghost site URL to open it in your Ghost Admin). 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 (set your Ghost site URL to open it in your Ghost Admin). 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.mdfirst, then changes the files and logs each change inCUSTOMIZATIONS.md.
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:
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:
- 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.
- Download the new version from the Polar customer portal (opens in a new tab), and unzip both side by side.
- Ask your assistant: “Update to the new version and apply the changes in CUSTOMIZATIONS.md.”
- 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
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:
npm run dev— runs the Vite dev server atlocalhost: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 invite.config.js.npm run build— builds the assets once, intoassets/built/.npm run test— checks the theme with GScan (opens in a new tab), Ghost’s own theme checker.npm run zip— makes a zip of the theme in thedistdirectory, 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:
<style>
:root {
--logo-h-mobile: 28px;
--logo-w-mobile: auto;
--logo-h-desktop: 32px;
--logo-w-desktop: auto;
}
</style>How to open podcast links in a new tab?
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:
<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.