Photography template. Gallery
A studio or an illustrator, with a wall of pictures on the front page, each on a mat at its own shape with a numbered label, a list of works under the same numbers, and project pages with a sheet of the client, year, medium and edition.
Free and open source, built into Khalid.
khalid init blog --template gallery
The home page, a post and a phone.
What it shows.
Gallery is a template for a studio or an illustrator. The front page is a wall of pictures: each work hangs on a pale mat at its own shape, with a numbered label under it. Each post is a project page. Nothing on the site needs a script.
What the front page shows
- Your studio's name large, with your statement beside it: the home page's intro, or the
statementoption. Up to four numbers fromhero_statsfollow when you write them. - Discipline chips: "All work", then each category, as plain links.
- The wall: every post on the page in columns, two on a phone, three on a tablet and four on a wide screen. Each picture sits on a mat at its own shape, never cropped. Under it, never on it, the wall label: the number, the title, then the medium and year. The whole work is one link.
- List of works: the same works under the same numbers, each with its title, client and year. The
checklistoption turns it off. - Numbered page links, your call to action as a band, and the newsletter form.
When [[reader.home_sections]] lists sections, each section is a wall of its own.
Its options.
Set any of these under [template.options]. An option you leave out takes the default shown.
| Option | Default | What it changes |
|---|---|---|
statement |
none | One or two lines beside your studio's name on the front page, when the home page has no intro. |
checklist |
true |
The front page closes with the list of works under the wall's numbers. |
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 |
4 |
How many related posts More work shows under a post, 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 Gallery 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.