Spica Jekyll documentation
Writing posts
Add posts to Spica: front matter, link posts, featured posts, contents list, reading time, share links, author box, related posts, categories and tags.
Each post is a Markdown file in _posts/. Posts appear on the home page, the Archive, their category page, the Tags page and in search.
Add a post
Add a file to _posts/ named YYYY-MM-DD-title.md, such as 2026-12-01-my-first-post.md. The title part of the name becomes the address: /my-first-post/. 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: [Design]
tags: [photography, light, outdoors]
image: /assets/img/posts/golden-hour.webp
image_alt: "A curved white staircase with wooden steps"
excerpt: "The hour after sunrise and before sunset can change an ordinary scene."
---
Your post, in Markdown.
Write the post below the front matter, in Markdown. Use ## for sections and ### for the parts inside them.
| Field | What it does |
|---|---|
title |
The heading. |
date |
The post’s date, shown as “May 21, 2026”. Optional if the file name has it. Use the same date in both. |
categories |
The first one is shown on the post and links to its category page. See below. |
tags |
The post’s tags. They appear at the end of the post and on the Tags page. |
image |
The cover picture, shown above the text and on cards. A plain file path works. See Pictures. |
image_alt |
What’s in the picture, for screen readers and search engines. |
image_caption |
An optional line under the cover picture. Markdown works. |
image_position |
Which part of the picture stays in view when it’s cropped, such as "50% 20%" or top. |
excerpt |
The short summary on cards and in search. Always write one. If you leave it out, Jekyll uses the first paragraph. |
featured: true |
Makes the post a candidate for the large card on the home page. |
link |
An outside address. Makes this a link post. See below. |
toc: false |
Hides the contents list on this post. |
comments: false |
Turns off comments on this post. |
last_modified_at |
The date you last changed the post. Shows “Updated” and that date under the title. |
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 cover.
A post can also have noindex: true to ask search engines to skip it. See SEO.
What’s on a post
From the top: the category, the title, the date (and “Updated”), the reading time and the cover picture. Then the text, with a contents list beside it. Under the text, in this order: the tags, the share links, the author box, comments (when switched on), links to the previous and next post, and related posts.
Link posts
A link post is a short note about something elsewhere on the web. Add a link:
---
title: "Plain text tools for writers"
date: 2026-08-24 09:00:00 +0000
categories: [Tools]
excerpt: "A short comment on a guide to plain text tools for writers."
link: https://example.com/plain-text-tools
---
Why the guide is worth reading, in a few sentences.
The title and picture on the card then point to the outside address, with a small arrow. The date on the card links to your own page for the post. On that page a “Read on example.com” button leads to the outside address, and your note sits below it.
Featured post
Add featured: true to a post. The newest post marked this way appears as the large card at the top of the home page, unless spica.home.featured is false or the home style is text. See The home page.
Contents list
A post with three or more headings (## and ###) gets a list of them. On wide screens it sits beside the text and stays in view. On phones it folds into an “On this page” button above the text. Nothing else is needed.
- Turn it off for every post with
toc: falseunderspica.postin_config.yml. - Turn it off for one post with
toc: falsein its front matter. A post cannot turn it on if the site setting isfalse.
Reading time, progress bar and copy button
- Reading time. “5 min read” is worked out from the length of the post, at 220 words a minute. It shows beside the date on posts and cards.
spica.post.reading_time: falsehides it everywhere. - Progress bar. A thin bar at the top of a post fills as the reader scrolls. It shows only in browsers that support it, and not for people who ask for less motion.
spica.post.progress: falseremoves it. - Copy button. Code blocks get a Copy button. On computers it shows when you hover over the block.
spica.post.copy_code: falseremoves it.
Share links
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 spica.post.share:
spica:
post:
share: [x, linkedin, bluesky, email, copy]
The choices are x, facebook, linkedin, bluesky, email and copy. “Copy” copies the post’s address and needs JavaScript, so it stays hidden without it. An empty list (share: []) hides the whole row. If you take the share line out of _config.yml altogether, the five links above are used.
Author box
The “Written by” box under each post comes from author: in _config.yml: your picture, name, role, bio and a “More about me” link. Turn it off with spica.post.author_box: false.
To credit another writer on one post, give the post an author with a name:
author:
name: Jo Rivera
role: Guest writer
bio: Jo writes about coastal towns.
avatar: /assets/img/jo.webp
url: /about-jo/
The box shows only what you list for that post, so add url: if you want the “More about me” link.
Related posts
Under each post, Spica shows posts from the same category first, then posts that share a tag, then the newest posts if more are needed. How many is spica.post.related (0 hides the section). To pick them yourself, list their addresses:
related: [/good-first-sentence/, /keeping-a-notes-file/]
An address is the post’s file name without the date, between two slashes. When you list addresses, all of them are shown, whatever related is set to.
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/). A post with two categories appears on both category pages, but shows only the first.
The demo has four category pages: category/design.md, life.md, tools.md and writing.md. To add one:
- Copy
category/design.mdand give the copy a new name, such ascategory/food.md. - Change
title,category,permalinkanddescriptionin it:
---
layout: category
title: Food
category: Food
permalink: /category/food/
description: Recipes, markets and the meals I cook at home.
css: [page]
---
- Use the same name in the
categories:line of each post.categorymust match the posts’ name exactly, capital letters included. - Add a link to the new page under
spica.navin_config.yml, if you want it in the menu.
Keep layout and css as they are. The permalink must be /category/ plus the name in lowercase with dashes, or links to it will lead nowhere. description is the line shown under the category’s title.
A category with no page is not a broken link: its name is shown as plain text, without a link, until you add the page. A category page also gives search engines breadcrumbs for its posts. See SEO.
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 a post count, and the posts under it. A tag on a post links to its part of that page. The Tags page isn’t in the menu by default: add a link to /tags/ under spica.nav to show it.
Things you can put in a post
Pictures with captions, galleries, videos, notes and buttons are covered in Things you can put in a post.