Khalid / Templates / Ticker

Finance and markets template. Ticker

A markets newsletter, with a dark tape of figures, each issue's moves as a bar chart drawn without script, and every list as a data table shaded by how far each figure moved.

Free and open source, built into Khalid.

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

What it shows.

Ticker is a template for a markets newsletter. It leads with numbers: a dark tape of figures across the front page, each issue's moves as a bar chart, and every list as a data table shaded by how far each figure moved. Every chart is HTML and CSS, so it draws with scripts off and reads as a list of numbers to a screen reader.

What the front page shows

  1. The tape: a dark band of up to four figures, each with a drawn mark, a triangle up, a triangle down or a bar for flat. It shows your hero_stats lines, written +1.8% | Stocks index, or, without them, the latest issue's facts.
  2. Your newsletter's name, large, and the tagline under it, with the sign-up form beside them on wide screens.
  3. The latest issue: the newest post with facts, with its desk, title, summary, date and writer, beside its facts as a bar chart.
  4. Recent issues: every other post on the page as a data table: title and desk, date, then one column per fact. Each figure cell is shaded by how far it moved beside the largest move in its column, up in your accent colour and down in ink.
  5. Desks: every category as a row of links.
  6. Numbered page links, your call to action as a band, and the disclaimer line.

Later pages show the table only.

What a post shows

  1. The trail from the home page to the post's desk.
  2. The desk as a small label, the title, the description as a one-line summary, the writer and the date.
  3. This issue in numbers: the facts as a bar chart. Up bars are filled with your accent colour. Down bars are hatched in ink and grow the other way from a centre line, so a reader can tell them apart without colour. The disclaimer line sits under it.
  4. The lead picture, then the post in one column about 36rem wide.
  5. Tables in the post are data tables: a heavy rule over the head, figures in even-width numbers at the end of each cell, and a first column that stays in view while a wide table scrolls.
  6. The tags, the share links and the author box.
  7. Related posts as a small issue table.

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.
disclaimer none One line under every chart and at the foot of the front page, such as "Nothing here is investment advice."
hero_stats none Up to four figures for the tape, each written figure | what it is. Without them the tape shows the latest issue's facts.
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 A post shows its description under its title.
updated_note false An updated post 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 5 How many related posts show, 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 ["bluesky", "linkedin", "email"] The networks the share links go to, in order.
newsletter "both" Where the newsletter form shows: none, post, home or both. On the front page it sits beside the name.
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 Ticker 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.