Khalid / Templates / Beacon

Charities and causes template. Beacon

A charity or a cause, with campaigns that each carry a goal meter, impact figures, a news feed and a donate call in the header, the hero and a band on every page.

Free and open source, built into Khalid.

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

What it shows.

Beacon is a template for a charity or a cause. It shows your campaigns and how far each one is towards its goal, what your work has achieved, and one clear way to give. It reads like a charity's own website, not a blog.

What the front page shows

  1. Your charity's name, large, the tagline under it and the donate button.
  2. Appeal now beside it: the lead appeal as a card with its picture, title and goal meter.
  3. Our impact: up to four large numbers from hero_stats in a band across the page. Nothing shows until you write them.
  4. Campaigns: your other newest campaigns as cards, each with its picture, area of work, title and goal meter. campaign_count sets how many.
  5. News beside Our work on wide screens: the newest posts without facts, each with its date and category, and every area of work as a list of links. news_count sets how many news posts show.
  6. Numbered page links, the donate band and, when you take sign-ups, the newsletter form.

What a post shows

  1. The trail from the home page to the post's area of work.
  2. The area of work as a small label, the title and the post's description.
  3. The author with their role, who reviewed it, and the date.
  4. The campaign panel beside the lead picture on wide screens, under it on phones: the amount raised in large figures, the goal meter, facts 3 and 4, and the donate button.
  5. The post in one column about 35rem wide, with a folded contents list for long posts.
  6. The tags, the share links and the author box, then the donate band.
  7. Related posts as cards, a campaign's with its goal meter.

A news post has no campaign panel.

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 charity's name on the front page.
hero_stats none Up to four impact numbers in a band on the front page, each written number | what it counts.
campaign_count 6 How many campaigns show as cards on the front page after the lead appeal, from 0 to 9.
news_count 4 How many news posts 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 ["facebook", "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 "both" Where the donate band shows: none, post, home or both.
cta_button true 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 Beacon 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.