Khalid / Templates / Letterpress

Newsletters template. Letterpress

A newsletter that treats each issue as a printed edition, with the newest issue as a cover beside its picture and contents, past issues as a pile of small printed covers, and each issue opened by a folio line with its number and closed by an end mark.

Free and open source, built into Khalid.

Start a blog
khalid init blog --template letterpress
Run it where you want the blog's folder. It asks for the blog's address, then builds it.

The home page, a post and a phone.

The home page of the Letterpress template
The home page
A post in the Letterpress template
A post
The home page of the Letterpress template on a phone
On a phone

What it shows.

Letterpress is a template for a newsletter that treats each issue as a printed edition. The front page is the cover of your newest issue. Older issues wait under it as a pile of small printed covers. Each issue opens with a folio line, like the top of a printed page, and closes with an end mark.

What the front page shows

  1. The nameplate: your newsletter's name very large and centred, the tagline under it in italics, then the folio line: the newest issue's number, its date and its reading time between a thick and a thin rule.
  2. The cover: your newest issue, its lead picture in a plate beside "Latest issue", the title, the description, the byline, "In this issue" and a "Read this issue" button. Without a lead picture, the text takes the whole width.
  3. The newsletter form and your call to action as a band.
  4. Past issues: every other issue as a small printed cover, three to a row on a wide screen: the number and date over a double rule, the title, the description and the category. These covers carry no pictures, so the page loads fast.

The second and later pages show the past issues only.

Its options.

Set any of these under [template.options]. An option you leave out takes the default shown.

Option Default What it changes
tagline none One line under the newsletter's name on the front page.
logo true The header shows your logo from [brand] logo in place of the site's name.
breadcrumbs true Each page shows the trail of links from the home page to it.
dek true An issue shows its description under its title.
updated_note false An updated issue says why it was updated, from its updated_note.
cards "text" The shape of the cards on shared pages such as search: image, text, row, compact or ranked.
pagination "numbered" numbered links to each page near this one; pages shows only newer and older.
related_count 4 How many more issues show under an issue, from 3 to 10.
contents "inline-folded" Where a long issue's contents go: inline, inline-folded, side-end, side-start or none.
header_search "button" What the header's search does on a served site: button, link or none.
contents_numbers "none" How the contents are numbered: none, numbered or nested.
share "end" Where an issue shows its share links: none, top, end or both.
share_networks ["bluesky", "email"] The networks the share links go to, in order.
newsletter "both" Where the newsletter form shows: none, post, home or both.
cta_band "home" Where the band with your call to action shows: none, post, home or both.
cta_button false The header shows your call to action as a button.
topic_tabs false Tabs on the front page, one per topic, each with its four newest posts.
video_section false A row of the newest posts with a video.
podcast_section false A row of the newest posts with a sound player.

Deploy guides.

A free blog on Cloudflare

Build the blog as static pages and serve them on Cloudflare's free plan.

Running Khalid on a server

Run Khalid on your own server, beside your website or at its own address.

The full Letterpress guide

Sizes, spacing and every detail, in Khalid's docs.

Run your blog on Khalid.

Free and open source. One program, with SEO built in.