Khalid / Templates / Notebook

Personal journal template. Notebook

One person's public notebook of short notes and links, in a dated stream newest first under month headings, each date in the margin beside a double margin rule, with link notes that point to what they share.

Free and open source, built into Khalid.

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

What it shows.

Notebook is a template for one person's public notebook: short notes, links with a line or two about them, and things noticed along the way. Every page is a stream, newest first, like the pages of a notebook kept every few days.

What the front page shows

  1. Your site's name, with your tagline beside it.
  2. The stream: every note, newest first, under a month heading such as "November 2026". Each note has its date in the margin, the day large and the month small, beside a double margin rule in your accent colour. Then its section, its title, its description, the "Read it at" link of a link note and a small picture when it has one.
  3. The side column on a wide screen, under the stream on a phone: "About this notebook" with the front page's intro or your tagline, your sections, and the newsletter form when your site takes sign-ups.
  4. Numbered page links when there are more notes.

When [[reader.home_sections]] lists sections, they take the place of the stream, each a stream of its own.

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 beside your site's name on the front page. It also fills "About this notebook" when the front page has no intro.
logo false The header shows your logo from [brand] logo in place of the site's name.
dek true A note shows its description under its title.
updated_note false An updated note says why it was updated, from its updated_note.
cards "text" The shape of the posts on author pages: image, text, row, compact or ranked.
pagination "numbered" numbered links to each page near this one; pages shows only newer and older.
related_count 5 How many related notes show, from 3 to 10.
contents "inline-folded" Where a long note'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 note shows its share links: none, top, end or both.
share_networks ["bluesky", "hacker-news", "email"] The networks the share links go to, in order.
newsletter "home" Where the newsletter form shows: none, post, home or both.
cta_band "none" Where a 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.
hero_stats none Up to four numbers under your name, each written number | what it counts.
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 Notebook 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.