Khalid / Templates / Hearth

Personal journal template. Hearth

A warm, classic blog for a small team or a family business, with a welcome, a picture-led lead story on a warm panel, a grid of picture cards with each author's face and a friendly reading column, every picture in an arch.

Free and open source, built into Khalid.

Start a blog
khalid init blog --template hearth
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 Hearth template
The home page
A post in the Hearth template
A post
The home page of the Hearth template on a phone
On a phone

What it shows.

Hearth is a warm, classic blog for a small team or a family business. The front page welcomes readers, leads with one story and its picture, then shows the other posts as a grid of picture cards. Posts read in a friendly column. Every picture sits in an arch, like the opening of a hearth.

What the front page shows

  1. The welcome: your blog's name large and centred, under a small arch, with the front page's intro or your tagline under it, and up to four numbers from hero_stats when you write them.
  2. The lead story: on a warm panel, its picture in a tall arch on one side, and its category, title, summary, author and date on the other. With featured on, the newest featured post leads; otherwise the newest post does. It shows on the first page only.
  3. Latest posts: the other posts on the page as cards, three across on a wide screen and two on a tablet. Each card has its picture in a low arch, the category, the title, the summary, and the author's face, name and date. On a phone each card is a row: its picture in a small tall arch beside the category, the title and the author, so the page stays light.
  4. Topics: every category as a rounded link.
  5. Numbered page links, your call to action as a band, and the newsletter form.

When [[reader.home_sections]] lists sections, each section is a grid of up to six cards in place of Latest posts.

What a post shows

  1. A centred head: the category, the title, the summary, the author's face and name, the date and the reading time.
  2. The lead picture, wider than the text, in a low arch, with its caption under it.
  3. The text in a friendly reading column of about 66 characters a line, with a folded contents list for a long post.
  4. The tags, the share links and the author box, set as a signed note.
  5. Keep reading: the related posts as cards.

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 your blog's name on the front page. The front page's intro, when you write one, shows in its place.
featured true The newest post marked featured leads the front page. With false, the newest post leads.
hero_stats none Up to four numbers under the welcome, each written number | what it counts.
logo true The header shows your logo from [brand] logo in place of the site's name.
breadcrumbs false A trail of links over each page, from the home page down.
dek true A post shows its description under its title.
updated_note false An updated post says why it was updated, from its updated_note.
cards "image" 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 3 How many related posts Keep reading shows under a post, from 3 to 10.
contents "inline-folded" Where a long post'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 a post shows its share links: none, top, end or both.
share_networks ["facebook", "whatsapp", "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 Hearth 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.