Khalid / Templates / Hub

Creators and video template. Hub

A creator's link-in-bio home in one narrow column, with the creator's photo and name, a stack of large link buttons led by the call to action, and the latest posts as rows with a square picture.

Free and open source, built into Khalid.

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

What it shows.

Hub is a template for a creator's link-in-bio home. It is the one link you put in every profile: your photo, your name and a stack of large link buttons, then your latest posts, all in one narrow column.

What the front page shows

  1. Your round photo in an ink ring, your site's name large, and your tagline under it. When the front page has an intro of its own, the intro shows instead.
  2. Up to four numbers in a row from hero_stats, such as subscribers and videos.
  3. The link stack: your call to action first, then each link as a large button with a hard edge and a shadow like a stack of cards.
  4. The newsletter form, when your site takes sign-ups.
  5. Latest posts: each post as a row with a square picture, the date and category, the title and the summary.
  6. Numbered page links when there are more posts.

When [[reader.home_sections]] lists sections, they take the place of the latest posts, as on every front page.

What a post shows

  1. An "All posts" link back to the front page, then the category as a small label.
  2. The title, the post's description as a summary, your photo, name and role, the date and the reading time.
  3. The lead picture with the same edge and corners as the link buttons.
  4. The post in the same narrow column, with a folded contents list for long posts.
  5. The tags, the share links and the author box.
  6. More from you: your links again, under a heading such as "More from Tamsin Hale". Turn this off with post_links = false.
  7. Related posts as rows with a square picture.

Its options.

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

Option Default What it changes
links none Up to eight link buttons, each written label | address or label | address | note. Without them, the main menu fills the stack.
creator empty The slug of the author whose photo leads the front page. Empty shows the newest post's author.
tagline none One line under your name on the front page.
cta_tile true Your call to action leads the link stack, filled with the accent colour.
post_links true A post ends with your link buttons again.
hero_stats none Up to four numbers under your name, each written number | what it counts.
logo false The header shows your logo from [brand] logo in place of the site's name.
back_link true A post shows an "All posts" link back to the front page above its title.
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 "row" The shape of the posts in lists: 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 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 ["x", "bluesky", "whatsapp", "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 as well: 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 Hub 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.