Khalid / Templates / Aperture

Photography template. Aperture

One photographer's site, with each post one picture the full width of the page, its story and a plate of its camera, lens and exposure, and older pictures in a light contact sheet.

Free and open source, built into Khalid.

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

What it shows.

Aperture is a template for one photographer. Each post is one picture and the story behind it. The picture fills the width of the page, and under it a plate gives the camera, the lens and the exposure.

What the front page shows

  1. Your name and the tagline on one line, over a hairline, and up to four numbers from hero_stats when you write them.
  2. Stories: the newest posts, one under the other. Each is its picture the full width of the frame, then a caption row: the place and date, the title and the summary on one side, and the plate with the camera details on the other. stories sets how many, five by default.
  3. Contact sheet: the other posts on the page as small pictures in a light strip that scrolls sideways, each with its title, place and date.
  4. Numbered page links, your call to action as a band, and the newsletter form.

When [[reader.home_sections]] lists sections, each section is a contact sheet of its own in place of the stories.

What a post shows

  1. The picture first, the full width of the frame, with its caption, such as the credit, under it on the end side. A tall picture keeps its shape and sits in the middle.
  2. The plate: the four facts in a ruled row, in a monospace, like the edge of a strip of film. On a phone it becomes two rows of two.
  3. In one calm column about 36rem wide: the place, the title, the summary in italics, the author and date.
  4. The story, with a folded contents list for a long post.
  5. The tags, the share links and the author box.
  6. More pictures: the related posts as a contact sheet.

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 beside your name on the front page.
stories 5 How many of the newest posts show as full-width stories on the front page, from 1 to 12. The rest of the page goes into the contact sheet.
camera_plate true Each picture shows its plate of camera details, read from the post's facts.
hero_stats none Up to four numbers under your name, each written number | what it counts.
logo true The header shows your logo from [brand] logo in place of the site's name.
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 related posts the contact sheet under a post shows, 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 Aperture 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.