Khalid / Templates / Channel

Creators and video template. Channel

A video creator's home, with the newest video large as Now showing, thumbnail cards with a play bar and running time, a shelf for each playlist, and posts that open on a wide video with Up next under them.

Free and open source, built into Khalid.

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

What it shows.

Channel is a template for a video creator. Each post is one video with its notes, and the front page reads like the home of a video channel: the newest video large, then a grid of thumbnails, then a shelf for each playlist.

What the front page shows

  1. Your channel's name, large, and the tagline under it.
  2. A row of up to four large numbers from hero_stats, such as videos, series and subscribers. Nothing shows until you write them.
  3. Now showing: your newest post with a video, large, on a panel of your surface colour: the thumbnail with a thick play bar under it, and beside it the playlist, title, excerpt, date and a Watch now button. Only the first page shows it.
  4. Latest videos: every other post on the page as thumbnail cards, three across on a laptop. Under each picture runs the play bar: a play mark, a track and the running time. No words ever sit on a picture.
  5. Numbered page links.
  6. Playlists: a shelf for each category, with its four newest videos in a row and a link to the whole playlist. On a phone the row scrolls sideways. shelves sets how many show.
  7. Your call to action as a band, such as "Subscribe to the channel", and the newsletter form.

With [[reader.home_sections]] in site.toml, each section is a shelf in place of Now showing and the latest videos.

What a post shows

  1. The trail from the home page to the post's playlist.
  2. The playlist as a small label, the title, and the post's description under it.
  3. The host with their mark and role, the date, and the facts as small labels.
  4. The screen: the video, on your surface colour, wider than the text on a laptop. A post without a video shows its lead picture there.
  5. The notes in one column about 37rem wide.
  6. The series box and the links to the parts before and after, when the post is part of a series.
  7. The tags, the share links and the author box.
  8. Up next: related posts as thumbnail cards with their play bars.

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 channel's name on the front page.
hero_stats none Up to four numbers under the channel's name, each written number | what it counts.
shelves 4 How many playlists show as a shelf on the front page, from 0 to 6.
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 "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 6 How many videos Up next shows, from 3 to 10.
contents "none" Where a long post's contents go: inline, inline-folded, side-end, side-start or none. Channel shows none, so a post opens on its video.
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", "facebook", "email"] The networks the share links go to, in order.
newsletter "home" 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.

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 Channel 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.