Stack documentation

Stack homepage

A Ghost theme for developers who write, laid out like a code editor: an Explorer of topics and series, a path bar and a status bar; code blocks with file names, tabs and diffs; post series, notes, a changelog and a command palette.

Thank you for choosing Stack. This guide covers everything from uploading the theme to setting up paid memberships. If something is not covered here, write to support@codememory.com — we answer within one working day.

Highlights

  • Laid out like a code editor: an Explorer rail where topics open like folders and series show progress bars, a path bar (~ / topic / post.md) and a status bar with the topic, reading time and progress; a drawer on phones and tablets
  • Three homepage layouts: Journal, Index and Magazine. Pick one in the design settings, or give each its own address
  • Code blocks with a title bar, file name, language, line numbers, Copy and wrap buttons, in a dark Night theme or one that matches the page
  • Built-in highlighting for 32 languages under 106 names, with no plugin or extra script
  • Tabs: the same example in several languages or package managers in one block; the reader's choice is shared across the page and remembered
  • Line highlights, focus, added, removed, error and warning marks from a comment, or a {2,5-7} line range
  • Diffs with + and − signs, also highlighted as the language they change (diff-ts, diff-sql…)
  • Terminal blocks: prompts and output are styled, and Copy takes the commands only
  • Long blocks fold with a Show all button, and code is comfortable on phones
  • Post series from one internal tag: Part 2 of 4, every part beside the text, progress kept in the browser, and a Series page
  • Notes for short today-I-learned posts, with their own template and page
  • Now, Uses, Changelog and Archive pages for developer blogs
  • Command palette (Ctrl/Cmd + K or /) to jump to any post, series, topic or page
  • An outline beside long posts that follows the reader, with the minutes left; a bar under the path on phones
  • Save posts for later, heading links, copy link and share
  • Cover and Note post templates
  • Membership page with your tiers, a monthly/yearly switch and the yearly saving worked out from your prices
  • Paywalls that name the plan needed, sign in and sign up pages, and a member account page
  • Topics and Writers pages, tag and author archives, a man-page footer and a designed 404
  • Night (dark) by default, a full Day (light) mode and System, with a reader switch; four highlight colours
  • Every Ghost editor card styled, tables that scroll on phones, and an image viewer
  • Self-hosted fonts (Martian Mono, Geist and Victor Mono), no jQuery, 20 theme settings
  • Translated into German, Spanish, French, Italian, Portuguese and Arabic; right-to-left layout for Arabic, Hebrew and Persian; ready for any other language

What is in the download

themeforest-stack-ghost-theme/
├── documentation/
│   ├── index.html                          ← you are here (open in any browser)
│   └── stack-documentation.pdf             ← the same guide as a PDF
├── sample-content/stack-sample-content.json  ← optional demo posts (see Sample content)
└── stack_2.0.0_for_ghost_6.0.0_or_later/
    ├── stack.zip                          ← upload this file to Ghost
    └── stack/                             ← the same theme, unzipped, with source files

You only need stack.zip to use the theme. The unzipped folder is there for developers who want to change the code (see Development).

Screenshots

Every template layout of Stack, as it looks with the demo content. The photos are the live demo's (stock images for the preview only; they are not in the download).

Homepage
Homepage
Post
Post
Page
Page
Tag archive
Tag archive
Author archive
Author archive
Changelog
Changelog
Cover
Cover
Membership
Membership
Note
Note
Series
Series
Homepage layouts and archives
Homepage layouts and archives
Developer pages
Developer pages
Sign in sign up account and 404
Sign in sign up account and 404

On a phone

Stack homepage on a phone
Homepage on a phone

The theme's own settings sit in Ghost Admin → Settings → Design & branding → Customize; every one is listed in Theme settings.

Third-party services

Stack is a theme: it runs on Ghost and uses the services your Ghost site is connected to. These providers are not part of this item. Each has its own terms and its own pricing tiers, and you are responsible for any costs from them.

ProviderWhat it is forCost
Ghost(Pro) or your own serverRuns your Ghost siteGhost(Pro) is paid (custom themes need the Creator plan or higher); self-hosted Ghost is free, the server and domain are paid
StripePaid memberships and tipsFree to connect; Stripe takes a fee on each payment
Mailgun (self-hosted Ghost)Sends newslettersPaid tiers by volume (Ghost(Pro) includes it)
An SMTP email provider (self-hosted Ghost)Sign-in links and receiptsDepends on the provider

The theme itself makes no calls to outside services: its fonts and icons are inside the theme. Portal, search and comments are Ghost features loaded by Ghost.

Installation

  1. Sign in to your Ghost admin (yoursite.com/ghost).
  2. Go to Settings → Design & branding → Customize → Change theme.
  3. Click Upload theme and choose stack.zip from the stack_2.0.0_for_ghost_6.0.0_or_later folder. Do not upload the whole download.
  4. Click Activate.
Ghost(Pro) customers: custom themes need the Creator plan or higher. Self-hosted Ghost: any version from 6.0.0 works.

Ghost(Pro) is a third-party hosting service with its own pricing; you pay Ghost(Pro) for your plan, it is not part of this item. Self-hosted Ghost is free software, but you pay for your own server, domain and email provider.

Updating

When a new version is released, download it from your ThemeForest Downloads page and upload the new stack.zip the same way. Ghost asks whether to overwrite the existing theme — choose Overwrite. Your content, navigation and theme settings are kept.

If you edited the theme files yourself, keep a copy of your changes first: an update replaces every file.

Quick setup (10 minutes)

To make your site look like the demo, do these steps in order. Each one is explained in detail further down.

  1. Brand: Settings → Design & branding → set the Accent colour, upload a logo and a site icon.
  2. Navigation: Settings → Navigation → add your main links (see Navigation).
  3. Pages: create the pages in Pages and templates and pick the matching template.
  4. Membership: Settings → Membership → turn on signups; add paid tiers and connect Stripe (see Membership).
  5. Theme settings: Design & branding → Theme tab (see Theme settings).
  6. Homepage layout: choose Journal, Index or Magazine in Customize → Homepage. To offer all three, upload the routes file in Homepage layouts.
  7. Start here: mark your three best posts as Featured.
  8. Series: give each part the same internal tag, for example #series Rust from zero, and create a page with the Series template (see Series and parts).
  9. Notes: give short posts the internal tag #note and the Note template, and create a page with the Notes template (see Notes).
  10. Developer pages: create Now, Uses, Changelog and Archive pages (see Developer pages).
  11. Code: pick Night or Match the page in Customize → Post → Code theme, and see Code blocks for file names, tabs and line marks.

Sample content

The download includes the demo's text as a Ghost import file: sample-content/stack-sample-content.json. It holds 39 posts, 14 pages, 8 tags and the demo writers, with the same templates and settings per post as the live demo. Use it to see how Stack looks with real content, or as a starting point you edit.

  1. Use a new or test site — the import adds posts next to anything you already have.
  2. Go to Settings → Advanced → Import/Export → Import content.
  3. Choose stack-sample-content.json and confirm.
  4. Set up Navigation, page templates and theme settings as described below. Ghost does not import these from a content file.
Photos, audio and video from the demo are not included: they are stock media used for the preview only (see third-party materials). Add your own feature images to the posts. Imported writers can be removed in Settings → Staff when you no longer need them.

Logo, colours and fonts

Accent colour

Settings → Design & branding → Accent colour. Stack uses it for buttons, links, highlights and the reading-progress bar. Stack uses your accent colour (#F5B83D on the demo) for buttons and links. Text in that colour is darkened on Day pages and lightened on Night pages so it stays readable, and button text turns dark or white to suit your colour. A second colour, the Highlight color setting (Marigold, Lime, Coral or Sky), marks highlighted code lines, the caret, the current item in the Explorer and outline, and the active tab. Each topic shows its own tag colour (Tags → a tag → Accent colour) in the Explorer, on its chip and on its tile.

Logo

Upload a logo in Design & branding → Brand. Without a logo, Stack shows the site title in the theme's display font. A transparent PNG or SVG around 400 × 100 px works best. If your logo is dark, upload a light version in the Theme tab under Logo for dark mode.

Fonts

Stack ships its own fonts (Geist Latin 100 900, Martian Mono Latin 100 800, Victor Mono), hosted inside the theme — no requests to Google. To use different fonts, pick a Heading font and Body font in Design & branding → Brand. The theme follows your choice everywhere. Choose Theme default to go back.

Light and dark mode

In the Theme tab, Color scheme sets the default: Light, Dark or System (follows the reader's device). Readers can switch with the moon/sun button in the header or the switch in the menu; their choice is remembered on that device.

Theme settings

Settings → Design & branding → Customize. Theme settings are split between the Site wide, Homepage and Post tabs. Every setting:

SettingGroupTypeDefaultWhat it does
Color schemeSite wideselectDark (Light / Dark / System)Dark is the house look. Readers can still switch with the sun and moon button.
Logo for dark modeSite wideimage—Optional light version of your logo, shown in dark mode.
Highlight colorSite wideselectMarigold (Marigold / Lime / Coral / Sky)Highlighted code lines, the newsletter button and marks.
Show command paletteSite widebooleanOnQuick jump box (Ctrl/Cmd + K or /). Off = the search button opens Ghost search.
Pagination styleSite wideselectLoad more (Load more / Page numbers)
Newsletter titleSite widetextNew posts by email, and nothing else.Headline of the newsletter boxes.
Footer textSite widetextemptyLine under the footer logo. Empty = site description.
Home layoutHomepageselectJournal (Journal / Index / Magazine)Journal: hero and series. Index: the archive by year. Magazine: lead story, topics, writers.
Hero labelHomepagetextEngineering journalSmall line above the headline.
Hero titleHomepagetextNotes on building software that lastsLarge headline. Empty = site title.
Start here titleHomepagetextThe posts readers send to their teamTitle over your featured posts.
Latest titleHomepagetextEverything, newest firstTitle over the list of posts.
Code themePostselectNight (Night / Match the page)Night: dark code in both modes. Match the page: light code on light pages.
Show line numbersPostbooleanOnNumbers in code blocks of three lines or more (never in terminal output).
Code ligaturesPostbooleanOffJoin => != >= and friends into single symbols.
Collapse long codePostbooleanOnFold code blocks over 30 lines with a Show all button.
Show tocPostbooleanOnContents beside posts with two or more headings.
Show reading progressPostbooleanOnProgress bar at the top of the screen while reading a post.
Show related postsPostbooleanOnThree posts from the same tag under each post.
Show author boxPostbooleanOnAuthor photo and bio under posts.

Homepage layouts

Settings → Design & branding → Customize → Homepage → Home layout sets what your front page shows:

  1. Journal (default): a README-style hero with your headline, the newsletter form as a terminal prompt and your writers, beside a git log of the newest posts (the newest one as a card with its cover); then Pinned (featured posts) as files, your series as pipelines with each reader's progress, your topics as a directory listing beside a log of notes, and every post as a numbered row with topic filters.
  2. Index: the whole archive on one page, grouped by year, with a box that filters by title as you type. Good for blogs with many short posts.
  3. Magazine: a masthead, the lead story under a row of editor tabs (one per busiest topic), each topic with its newest posts, the writers, then every post as a row.

Page 2 and later always show the rows only. Hero label, Hero title, Start here title and Latest title change the words on the homepage.

All three layouts at once

Stack also includes each layout as a route template, so you can keep one as the homepage and give the others their own address (the demo shows Journal at /, Magazine at /magazine/ and Index at /index/). Save this as routes.yaml and upload it in Settings → Labs → Routes → Upload routes file:

routes:
  /magazine/:
    controller: channel
    template: layout-magazine
  /index/:
    controller: channel
    template: layout-index

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

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

Download the current file first with Download current routes.yaml if you have changed it before, and add only the two routes.

The editor layout: Explorer, path bar and status bar

Every page is framed like a code editor. Nothing here needs setting up beyond what Ghost already has; this is where each part takes its content from.

  • Explorer (the rail on the left): your logo or site title, then Explorer = your Primary navigation (Settings → Navigation; links to tags are left out here because every busy topic is already listed under Topics, so add tags to the menu freely), Topics = your eight public tags with the most posts (on a post, its topic opens like a folder and lists that topic's newest posts, the current one marked), Series = up to six #series internal tags with a bar per part that fills as the reader finishes them, and Pages = your Secondary navigation. At the bottom: Subscribe and Sign in, or the member's account. Each control appears once: with the Explorer open beside the page, the path bar leaves out the member buttons and the Explorer leaves out search.
  • On screens 1200 px and wider the Explorer stays beside the page. Below that it opens as a drawer from the menu button, with a search box at the top; Escape, the close button or a click outside closes it.
  • Path bar (top): where the reader is, written as a path, for example ~ / databases / postgres-indexes.md. Each part is a link. On the right: search and the Night/Day switch, plus Sign in and Subscribe on screens narrower than 1200 px (wider screens show them at the foot of the Explorer).
  • Status bar (bottom, screens 760 px and wider): it only reports. On the left the site, the post's topic and reading time; on the right how far the reader is and the minutes left (or the number of posts on a list) and a Top button.
  • Footer: written like a manual page: NAME (your site and its description, or the Footer text setting when you fill it in), SYNOPSIS (the newsletter form; it steps aside on pages that already show a sign-up form, such as the home page, so a page never asks twice), then your busiest topics, your secondary navigation, member links and See also (your social accounts from Settings → General, and the sitemap).

Night or Day: Customize → Site wide → Color scheme sets the default (Dark is the house look). Readers switch with the sun and moon button and their choice is kept in their browser. Upload a Logo for dark mode if your logo is dark.

Code blocks

Add code with the editor's code card (type /code, or ``` followed by the language and a space) and type the language in the card's Language box. Markdown cards with fenced code work the same way. Stack adds a title bar with the language, line numbers on blocks of three lines or more, a Copy button and a wrap button, and highlights the code in the browser, with no plugin and no extra script to set up.

File names and titles

Make the first line of the code a comment that starts with file: or title:. Stack moves it into the title bar and leaves it out of the code and the copy:

// file: src/main.rs
fn main() {
    println!("hello");
}

Any comment style works: //, #, --, ;, /* … */ and <!-- … -->. You can also type the file name in the Language box after a colon, for example rust:src/main.rs. When the language is empty, Stack works it out from the file name's extension (.ts, .py, Dockerfile, Makefile and so on).

Highlight lines

Two ways, and you can mix them:

  • A line range in the Language box: ts{2,5-7} highlights lines 2, 5, 6 and 7.
  • A comment at the end of a line: // [!code highlight]. Add a number to mark that many lines from there: // [!code highlight:3].

The same comments add other marks, and Stack removes the comment from what readers see and copy:

CommentWhat it does
[!code highlight] or [!code hl]Highlights the line in your Highlight color
[!code focus]Dims every other line, so the reader's eye lands here. Hovering the block shows all lines again
[!code ++] and [!code --]Marks a line as added (green, +) or removed (red, −). Removed lines are left out of the copy
[!code error] and [!code warning]Marks a line in red or amber, for "this is the line that fails"

The mark can sit inside a comment that already has words: let x = 1; // the bug [!code error] shows // the bug on a red line.

Diffs

  • Language diff: a plain patch. Lines that start with + are green, lines with - are red, and @@ lines are dimmed.
  • Language diff- plus a language, for example diff-ts or diff-sql: the same signs, and the code is highlighted as that language. Readers copy the new version only.

Terminal commands

In a bash, shell or console block, start each command with a prompt: $ , % , ❯ , PS> or >>> . Stack shows the prompt in the accent colour, dims the output lines under each command and copies only the commands. A command that ends with \ carries on to the next line.

$ cargo new hello
     Created binary (application) `hello` package
$ cd hello && cargo run

Tabs

Put two or more code cards directly after each other and make each one start with a tab: comment. Stack joins them into one block with tabs:

# tab: npm
npm install zod
# tab: pnpm
pnpm add zod

When a reader picks a tab, every block on the page with a tab of the same name switches too, and the choice is remembered for their next visit. A tab: line can sit with a file: line, in either order.

Long blocks and phones

  • Blocks over 30 lines fold to the first lines with a Show all button (Collapse long code turns this off).
  • The wrap button wraps long lines; line numbers stay beside their line.
  • On phones, blocks run edge to edge and scroll sideways on their own, never the page; buttons stay large enough to tap.

Code settings

In Customize → Post: Code theme (Night: dark code in light and dark mode; Match the page: light code on light pages), Show line numbers, Code ligatures (joins =>, != and friends into one symbol) and Collapse long code. Customize → Site wide → Highlight color sets the colour of highlighted lines: Marigold, Lime, Coral or Sky.

Languages

Type any of these names in the Language box. Other names still get the title bar, line numbers and Copy, with plain text; text or output gives a plain block on purpose.

LanguageNames
JavaScript, JSXjs javascript mjs cjs node jsx
TypeScript, TSXts typescript mts cts tsx
JSONjson jsonc json5 webmanifest
HTML and XMLhtml htm xml svg xhtml rss
Templateshbs handlebars vue svelte astro liquid mustache
CSScss scss sass less postcss
Pythonpy python python3
Ruby, PHP, Go, Rustrb ruby php go golang rust rs
Java, Kotlin, Scalajava kotlin kt kts scala
Swift, Dart, Luaswift dart lua
C, C++, C#c h cpp c++ cc cxx hpp cs csharp c#
SQLsql postgres postgresql psql pgsql mysql sqlite plsql
GraphQLgraphql gql
Shellbash sh zsh fish ksh shell console terminal
YAML, TOML and configyaml yml toml ini env dotenv properties cfg editorconfig gitconfig
Server confignginx apache apacheconf caddyfile conf
Dockerfile, Makefiledockerfile containerfile makefile mk
Markdown, HTTPmarkdown md mdx http
Diffdiff, or diff- plus any name above

Code inside a sentence (`like this`) is set in the code font with a soft background. A caption under a code card shows under the block.

Series and parts

  1. Create an internal tag whose name starts with #series , for example #series Rust from zero. Its description shows on the Series page.
  2. Add that tag to every part. Parts are numbered by publish date, oldest first.
  3. Each part then shows Part 2 of 4 next to its topic, a rail beside the text with every part (the current one marked, finished ones ticked), and a Next in the series card at the end. On phones the parts list sits above the text.
  4. Create a page with the Series template (for example slug series): every series with its parts in order, a bar that fills as the reader finishes parts, and a tick on each part they have read.

Progress is kept in the reader's own browser: no account needed and nothing is sent anywhere. A part counts as read once the reader reaches the end. Members-only and paid parts carry a Members or Paid badge and open with a membership. The Journal homepage shows up to two series, and the command palette lists every series.

Notes

Notes are short posts, one thing learned in a few paragraphs.

  1. Give the post the internal tag #note and choose the Note template in the post settings.
  2. Notes get a narrow column with no feature image and no rails, a TIL badge in every list, and links to the older note and to all notes at the end.
  3. Create a page with the Notes template (slug notes) to list every note in full, newest first.

Developer pages: Now, Uses, Changelog and Archive

Pages developers expect on a personal or team blog. Create each as a page, set its URL and choose the template:

  • Now (template Now): what you are working on at the moment. The page shows when it was last changed at the top, so readers see how fresh it is. Write it in the editor, for example a heading per person.
  • Uses (default page template, slug uses): your editor, fonts, services and hardware. Lists, tables and bookmark cards are all styled.
  • Changelog (template Changelog): every H2 heading in the page is one entry, written as 2026-10-01 · v2.4 · What changed. The date and the version are optional; the text under the heading is the entry. Stack sets the date and version in a column beside each entry, with a version badge.
  • Archive (template Archive): every post on one page, grouped by year with a count per year, and a box that filters by title. It lists the newest 100 posts; search finds the rest.
  • Style guide (default page template): the demo has a page with every editor card, so you can check your colours in one place.

Command palette

Readers press Ctrl/⌘ + K or /, or click the search box in the header. They type part of a post title, a series, a topic or a page name, move with the arrow keys and press Enter. Posts the reader saved for later come first. Commands switch light or dark mode, copy the page link, open sign up or the member account and open the RSS feed; Search every post runs Ghost's full search.

It lists your navigation, your public topics, every series and your 60 newest posts, built into the page, so it opens instantly. Turn it off with Show command palette; the search box then opens Ghost's search directly.

Pages and templates

Stack includes page templates for the pages every membership site needs. Create a page in Ghost (Pages → New page), set its URL in the page settings, then choose the Template in the same panel.

TemplateSuggested URLUse
Series
custom-series.hbs
/series/Every series (internal tags that start with #series) with its parts in order and the reader's progress. See Series and parts.
Notes
custom-notes.hbs
/notes/Every post with the internal tag #note, newest first, in full.
Now
custom-now.hbs
/now/What you are working on at the moment, with the date it was last changed on top.
Changelog
custom-changelog.hbs
/changelog/Each H2 in the page is an entry: 2026-10-01 · v2.4 · What changed. See Developer pages.
Archive
custom-archive.hbs
/archive/Every post on one page, grouped by year, with a filter by title.
Topics
custom-topics.hbs
/topics/Every public tag as a folder tile in its own colour, with its description and post count.
Writers
custom-writers.hbs
/writers/Every staff user with at least one post: photo, bio, location and post count.
Membership
custom-membership.hbs
/membership/Your tiers with a monthly/yearly switch and the yearly saving. The page body (for example a FAQ made of toggle cards) appears below.
Signin
custom-signin.hbs
/signin/Email sign-in (magic link) in a terminal-style card, beside a panel that lists what members get.
Signup
custom-signup.hbs
/signup/Free signup with name and email, with the same members panel.
Account
custom-account.hbs
/account/Signed-in members see their plan, renewal date, card and newsletters, with links to change plan, billing and profile.

Tip: the membership page shows your tiers automatically. Anything you write in the page body appears underneath — the demo uses toggle cards for a FAQ.

Post templates

Choose a template per post in the post settings panel → Template.

TemplateUse
Cover
custom-cover.hbs
The feature image across the page with the title on a card over its lower edge. For big essays and guides.
Note
custom-note.hbs
A short post in one narrow column, no feature image and no rails. Give it the internal tag #note too.

Membership, tiers and payments

Stack is built for Ghost's members features: free and paid signups, tiers, a paywall and the Portal popup.

1. Turn on signups

Settings → Membership → Access → Who should be able to subscribe? → Anyone can sign up.

2. Connect Stripe

Settings → Membership → Tiers → Connect with Stripe. Use test mode first, then switch to live mode when you are ready to take real payments.

Stripe is a third-party payment service with its own pricing: it charges a fee on every payment (see stripe.com/pricing), and you are responsible for those fees.

3. Create tiers

Settings → Membership → Tiers. Add a name, monthly and yearly prices, a description and benefits. Stack shows every public tier on the membership page with a monthly/yearly switch, and marks the second tier as Most popular.

4. Members-only content

In a post's settings set Post access to Members only, Paid-members only or specific tiers. Readers without access see the start of the post and a paywall box that invites them to join or upgrade. To choose where the preview stops, add a Public preview divider in the editor (type /public).

5. Sign-up forms and buttons

Subscribe forms in the theme create free members and send a confirmation email. Every Subscribe, Sign in and Account button opens Ghost's Portal popup, so members can change plans, update cards and cancel without leaving your site.

Emails (sign-in links, receipts) need working email. On Ghost(Pro) it works out of the box. Self-hosted sites must configure Mailgun or SMTP in config.production.json. Mailgun and SMTP providers are third-party services with their own pricing, and you are responsible for any costs.

Newsletters, comments and search

Newsletters: Settings → Newsletters. Posts can be sent by email when you publish. The theme's subscribe forms subscribe readers to your default newsletters. Ghost(Pro) plans include newsletter sending; self-hosted Ghost sends newsletters through Mailgun, a third-party service with its own pricing — you pay Mailgun for the emails you send.

Comments: Settings → Membership → Commenting. When on, comments appear under every post that the reader has access to.

Search: works out of the box. The search icon in the header opens Ghost's search; readers can also press Ctrl/⌘ + K.

Comments and search are built into Ghost: they need no extra provider and cost nothing on top of your Ghost site.

Reading features

  • Reading progress bar on posts, in the post's topic colour (can be turned off in the Post tab).
  • Image lightbox: click any image or gallery photo in a post to see it full screen; use the arrow keys to move through a gallery.
  • Every editor card is styled: images (regular, wide, full), galleries, quotes, callouts, toggles, bookmarks, buttons, videos, audio, files, products, headers and signups. Create a page with every card to check your brand — the demo's style guide shows them all.
  • An outline beside posts with two or more headings, marking the section you are reading with the minutes left; on phones and tablets a bar under the path bar (Show toc).
  • The status bar along the bottom shows the post's topic, its reading time and, as you read, how far you are and the minutes left (Show reading progress).
  • A # link on every heading, save for later (kept in the reader's browser), copy link and share.
  • Read next (the next part of a series, otherwise the post before), the writer box and Keep reading with three posts from the same topic (Show author box, Show related posts).

Posts per page

The home, tag and author pages load 9 posts, then a Load more button fetches the next set without reloading the page. To change the number, edit "posts_per_page" in package.json, zip the theme folder and upload it again.

Translation

Every word in the theme can be translated.

Stack ships translated into German (de), Spanish (es), French (fr), Italian (it), Portuguese (pt) and Arabic (ar). For one of these, enter its code in Settings → General → Publication language; dates follow the same language. With ar, he or fa the whole layout mirrors to read right to left: the Explorer moves to the right, arrows turn round and code stays left to right. Code stays as you wrote it in every language.

For any other language:

  1. In the unzipped theme folder, copy locales/en.json to a new file named after your language code, for example locales/nl.json.
  2. Translate the values (the text on the right). Keep the keys (the text on the left) and anything in {curly braces} unchanged.
  3. Zip the theme folder and upload it.
  4. Settings → General → Publication language → enter the same code (nl).

Custom CSS

Small style changes do not need a new theme upload. Settings → Code injection → Site header:

<style>
:root { --radius: 4px; }
.code-block { border-radius: 0; }
</style>

Development

For larger changes, work on the unzipped stack/ folder. You need Node.js 20 or later.

cd stack
npm install        # once
npm run dev        # rebuild CSS/JS on every change
npm run build      # one-off build
npm test           # check the theme with gscan
npm run zip        # dist/stack.zip, ready to upload

CSS lives in src/css (one file per area, joined by main.css); JavaScript in src/js. Built files go to assets/built. Templates are Handlebars files in the theme root and in partials/.

Questions

The homepage looks empty after I activated the theme.

The home sections use your posts, featured posts and tags. Publish a few posts, mark some as Featured and add tags. Start here needs featured posts, the series band needs posts with a #series internal tag, and the topic strip needs tags with posts.

The membership page shows no prices.

Paid tiers only appear once Stripe is connected and the tiers are public (Settings → Membership → Tiers).

Sign-in emails do not arrive.

Check your email settings (self-hosted: Mailgun or SMTP in the config file). Ask readers to look in their spam folder.

How do I remove "Published with Ghost" from the footer?

Delete the link from partials/footer.hbs in the unzipped theme, zip the folder and upload it again.

Can I use the theme on more than one site?

A Regular licence covers one site (one end product). Buy one licence per site.

Are the demo images included?

No. Demo photos come from Pixabay and are only used on the demo site. The theme itself contains no stock photos.

Do I need Prism, highlight.js or a plugin for code?

No. Stack highlights 32 languages on its own, inside the theme's script (about 20 KB compressed for everything the theme does). Do not add a second highlighter in Code injection: the two would fight over the same blocks.

A code block shows plain text.

Check the name in the code card's Language box against the list in Code blocks. Unknown names still get the title bar and Copy, without colours.

Readers copy the $ prompt or the output.

Use a bash, shell or console block and put a space after the prompt ($ npm test). Lines without a prompt are treated as output.

My tabs did not join.

The code cards must follow each other with nothing in between, and each must start with a tab: comment on its first line.

The Explorer is missing on my screen.

The Explorer rail shows beside the page on screens 1200 px wide and wider. On smaller screens it opens as a drawer from the menu button at the left of the path bar.

Can I start in light mode?

Yes. Set Customize → Site wide → Color scheme to Light (Day) or System. Readers can still switch with the sun and moon button; their choice is kept in their browser.

Support

Support is included with your purchase and covers: answering questions about the theme's features, and fixing bugs. It does not cover custom changes or problems with third-party code.

Email support@codememory.com with your purchase code and your site address. See the changelog for what changed in each version and third-party materials for credits.