Online courses template. Syllabus
An online course, with a course map of one square per lesson, an outline of modules and lessons, course news, and on every lesson a progress ruler that shows how far through the course it is.
Free and open source, built into Khalid.
khalid init blog --template syllabus
The home page, a post and a phone.
What it shows.
Syllabus is a template for an online course. It shows your course as modules and lessons, and every lesson shows how far through the course it is. It reads like a course page, not a blog.
What the front page shows
- Your course's name, large, and the
taglineunder it. - A "Start with lesson 1" button that links to the first lesson.
- A row of up to four large numbers from
hero_stats, such as modules, lessons and hours of video. Nothing shows until you write them. - The course map on a pale band: every lesson as one small square, grouped by module, with each module's number and name over its squares.
- The course outline: each module as a block with its number, its name and which lessons it holds, such as "Lessons 4 to 7", then one row per lesson with a small square, its number, its title and its length. Lessons are listed oldest first, the order a course is published in, and numbered on across the modules. On a wide screen the module's name sits in a column beside its lessons.
- Course news beside the outline on wide screens and under it on phones: the newest posts without facts, each with its date.
news_countsets how many. - Your call to action as a band, such as "Enrol", and the newsletter.
The front page lists the posts of its first page, 20 at most, so a course of up to 20 lessons and news posts shows whole.
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 course's name on the front page. |
hero_stats |
none | Up to four numbers under the course's name, each written number | what it counts. |
start_button |
true |
The front page shows a button to the first lesson. |
course_map |
true |
The front page shows the course map, one square per lesson. |
news_count |
4 |
How many course news posts show beside the outline 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 |
"text" |
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 |
5 |
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 |
"numbered" |
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", "linkedin", "email"] |
The networks the share links go to, in order. |
newsletter |
"post" |
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. |
Everything reads with scripts off. Syllabus adds no script.
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 Syllabus 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.