Khalid / Templates / Locale

Travel template. Locale

A city guide with places listed by area, each as a guidebook row with its kind, opening hours and a price meter, an At a glance card on every place, and notes from the city.

Free and open source, built into Khalid.

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

What it shows.

Locale is a template for a city guide: the places worth a visit in one city or town, listed by area. Every place shows its kind, its opening hours and its price level, set like an entry in a printed guide, so a reader knows before they walk over whether it is open and what it costs.

What the front page shows

  1. Your site's name, its intro or tagline, and a chip per area with how many places it holds. Each chip jumps to that area further down the page.
  2. Places by area: a block per area, in the order categories.toml lists them, with the area's name, its place count and a link to the area's page. Its places follow as listing rows, two across on a laptop. An area with only notes gets no block.
  3. The listing row: a small square picture, the place's name, a dotted leader and the price meter on one line, then the kind and the opening hours in small capitals.
  4. Notes from the city: the posts without facts as picture cards, three across on a laptop.
  5. Numbered page links, your call to action as a band and the newsletter form.

With [[reader.home_sections]] in site.toml, each section shows as an area block of its own instead.

What a post shows

  1. The area as a small label with a pin, the place's name large, and the post's description under it.
  2. The author with their mark and role, and the date.
  3. The picture beside the At a glance card on wider screens, and above it on a phone. The card shows the price meter large, then the kind, the hours and the address, each with your label.
  4. The post in one column, at 18 px or larger.
  5. The tags, the share links and the author box.
  6. More places: related places as listing rows, and related notes as cards.

A note has no At a glance card. Its picture sits under the byline.

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, when the home page has no intro.
logo true The header shows your logo from [brand] logo in place of the site's name.
breadcrumbs false 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 4 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", "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.
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 Locale 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.