Capella Jekyll documentation

Writing posts

Add posts to Capella: front matter, the two post looks, drop cap, pull quotes, figures, categories, tags, featured and popular posts.

Each post is a Markdown file in _posts/. Posts appear on the home page, the Blog page, their category page, the tags page, search, and anywhere you add a posts or featured block.

Add a post

Add a file to _posts/ named YYYY-MM-DD-title.md, such as 2026-12-01-my-first-trip.md. The title part of the name becomes the address: /my-first-trip/. The date in the name is the post’s date.

---
title: "Shooting in the golden hour"
date: 2026-05-21 09:00:00 +0000
categories: [Photography]
tags: [photography, light, outdoors]
image: /assets/img/demo/golden-hour.webp
image_alt: "Looking down a curved white staircase with wooden steps"
excerpt: "The hour after sunrise and before sunset can transform ordinary scenes."
featured: false
popular: false
---

Your post, in Markdown.
Field What it does
title The heading.
date The post’s date, shown as “May 21, 2026”. Optional if the file name has it.
categories The first one is shown on the post and links to its category page. See below.
tags The post’s tags. See below.
image The photo. A plain file path works. See Pictures.
image_alt What’s in the photo, for screen readers and search engines.
image_position Which part of the photo stays in view when it’s cropped, such as "50% 20%" or top.
image_caption An optional caption under the photo. Markdown works.
excerpt The short summary on cards and in search. Always write one. If you leave it out, Jekyll uses the first paragraph.
featured: true Shows the post in the featured blocks.
popular: true Lists the post in the sidebar’s “Popular posts” box.
post_layout sidebar or wide. Overrides the look set in _config.yml.
drop_cap: false Turns off the big first letter on this post.
comments: false Turns off comments on this post.
related A list of post addresses to show as related posts. See below.
author Credits another writer. See below.

A post with no image still works: its cards show no picture and its page has no photo on top. A post whose image is the site’s default sharing picture (og.jpg) also shows no photo on top.

The reading time (“4 min read”) is worked out from the length of the post, at 200 words a minute.

Two looks

The look is set for every post by capella.post.layout in _config.yml. One post can pick its own with post_layout.

  • sidebar puts the photo across the top, then the post on the left and the sidebar on the right. The sidebar is the same one the list pages use. See Sidebar, sponsors and Instagram.
  • wide centers the title over a wide photo and sets the post in one centered column, with the share links floating beside it. There’s no sidebar.

What’s under a post

In this order: the tags and share links, the author box, related posts, comments (when switched on), then links to the previous and next post.

Drop cap

The first letter of a post is large, in the serif. Turn it off for every post with drop_cap: false under capella.post, or for one post with drop_cap: false in its front matter.

Pull quotes

A normal Markdown quote gets a thin coral line on the left. To make it a large pull quote, write {: .pullquote} on the line straight under it:

> Golden light does not make a picture by itself, but it gives every scene a reason to be seen.
>
> — Capella, in a notebook by the sea
{: .pullquote}

Photos with captions

A plain Markdown photo (![alt](/path.webp)) fills the column. For a caption, or two photos side by side, use figure.html:

{% include figure.html src="/assets/img/demo/life-on-the-coast.webp" alt="A woman in a white T-shirt" src2="/assets/img/demo/the-windows-know.webp" alt2="A small wooden window" caption="Soft, low light flatters faces and walls alike." %}

src2 and alt2 add the second photo. The caption can use Markdown, such as *italic* and links. Photos given this way find their smaller WebP copies too. See Pictures.

The /typography/ page in your copy shows every Markdown element as it looks in a post: headings, lists, quotes, tables, code and rules. Open typography.md next to it to see how each is written. Delete it when you no longer need it.

Categories

A post’s first categories entry is its category. It shows on the post and on its cards, and links to /category/<name>/, where the name is lowercased with dashes (Street Life becomes /category/street-life/). The sidebar’s Categories box lists every category with a count.

The demo has four category pages: category/travel.md, lifestyle.md, design.md and photography.md. To add one:

  1. Copy category/travel.md and give the copy a new name, such as category/food.md.
  2. Change every line marked (1): the category: name, the permalink:, the page head’s heading, and the category: in both blocks. The permalink must be /category/ plus the name in lowercase with dashes, or links to it will be broken.
  3. Add a link to the new page under capella.nav in _config.yml, if you want it in the menu.
  4. Use the same category name in the categories: line of each post.

Every category used in a post needs its page, or its links lead to a “page not found”.

Tags

Tags are the exact text in tags, so “Front-end” and “front end” are different tags. Pick one spelling. Each tag is listed on the /tags/ page with its posts, and tags link there. The footer’s “Popular tags” and the sidebar’s Tags box show the most used ones. See Settings.

  • featured: true puts a post in the featured blocks on the home pages. The row shows the newest first, up to its limit.
  • popular: true puts a post in the sidebar’s “Popular posts” box, which lists up to four. Without any popular post, the box doesn’t show.

Under each post, Capella shows posts from the same category first, then the newest ones if more are needed. How many is capella.post.related. To pick them yourself, list their addresses:

related: [/golden-hour/, /packing-light/]

Another author

The byline and the author box come from author: in _config.yml. To credit another writer on one post, give an author with a name:

author:
  name: Jo Rivera
  role: Guest writer
  bio: Jo writes about coastal towns.
  avatar: /assets/img/jo.webp

The box shows only what you list for that post, so add url: if you want the “More about me” link. The name in the byline links to the site’s author page.

The links under each post are plain links to each network’s own share page. Nothing is loaded from other sites. Choose which ones and their order with capella.post.share: x, facebook, pinterest, linkedin, email and copy. “Copy” copies the post’s address and needs JavaScript, so it stays hidden without it.