Khalid / Templates / Vital

Health and wellness template. Vital

A health and wellness site of programmes and routines, with each routine's time in a ring on its picture card, a session panel and a care note on every routine, its steps drawn as a track, and a notes feed.

Free and open source, built into Khalid.

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

What it shows.

Vital is a template for a health and wellness site that shares programmes and routines. It shows each routine's time at a glance, opens every routine with a short session panel, and draws its steps as a track. It feels calm and practical, like a good class handout.

What the front page shows

  1. Your site's name, large, and the tagline under it.
  2. Up to four large numbers from hero_stats, such as routines, programmes and minutes a day, each on a soft panel. Nothing shows until you write them.
  3. Programmes: every category as a rounded chip. A category whose posts on the page are all notes is left out, so a notes category never shows as a programme.
  4. Routines: your newest routines as picture cards. Each shows its programme, its title, its time in the session ring, and its level and how often beside it.
  5. Notes: the newest posts without facts as a dated feed, with the care note beside it on wide screens. notes_count sets how many.
  6. Numbered page links, your call to action as a band, and the newsletter form.

What a post shows

  1. The trail from the home page to the post's programme.
  2. The programme as a rounded label, the title, and the post's description under it.
  3. The coach with their mark and role, and the date.
  4. The session panel: the time in a large ring, then the other facts beside it.
  5. The care note, when you set one.
  6. The lead picture, with rounded corners, then the post in one column about 37rem wide, with a folded contents list for long posts.
  7. The tags, the share links and the author box.
  8. Related posts as picture cards.

A note has no session panel and no track.

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 site's name on the front page.
care_note none One safety line under every routine's session panel and beside the notes on the front page.
hero_stats none Up to four numbers under the site's name, each written number | what it counts.
notes_count 5 How many notes show on the front page, from 0 to 10.
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 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 ["whatsapp", "facebook", "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 Vital 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.