Spica Jekyll documentation

Edit in a browser (Sveltia CMS)

Write posts and projects, edit categories and change Spica's main settings in a browser with Sveltia CMS, on your own computer or on your live site.

From version 1.1.0, Spica comes with Sveltia CMS, a free, open-source editor that runs in your browser. It shows your posts, projects, categories and main settings as forms, and saves your changes back into your files. There’s no database and no server to run.

Two files make it work, both in the admin/ folder:

  • admin/index.html loads the editor.
  • admin/config.yml tells it which fields each item has.

Get the files

  • New site: the admin/ folder is already in the theme. Open admin/config.yml and change repo: your-name/your-repo to your own repository, such as username/my-blog.
  • Updating from 1.0.0: copy the admin/ folder from the new download into the root of your site, next to _config.yml. Then change the repo line the same way. Nothing in _config.yml has to change.

Don’t add admin to exclude: in _config.yml, or Jekyll won’t publish it. The page has noindex set and is kept out of your sitemap.

Edit on your computer

This works on Windows, macOS and Linux, and needs no sign-in. It uses a browser feature that only Chromium browsers have, so use Google Chrome, Microsoft Edge or Brave. It doesn’t work in Firefox or Safari.

  1. Start your site: bundle exec jekyll serve.
  2. In Chrome or Edge, open http://localhost:4000/admin/.
  3. Click Work with Local Repository and choose your site’s folder, the one with _config.yml in it.
  4. Allow the browser to view and edit the files when it asks.
  5. Pick a collection on the left, such as Posts.
  6. Click Save. The CMS writes the change into the file straight away.
  7. Check http://localhost:4000/, then commit and push with Git or GitHub Desktop, as you would after editing a file by hand.

Changes to Site settings live in _config.yml, which jekyll serve only reads when it starts. Stop it and start it again to see them.

Edit on your live site

To edit at https://your-site.com/admin/ from any computer, the CMS has to sign in to GitHub. GitHub Pages can’t do that part on its own, so you choose one of these:

  • Sign In Using Access Token: the sign-in box links to GitHub’s token page. If you make a fine-grained token yourself, limit it to your site’s repository with read and write access to Contents. Paste it in, and the browser remembers it. This is the quickest way for one or two editors.
  • Sign In with GitHub: deploy the free Sveltia CMS Authenticator to Cloudflare Workers, then add its address to admin/config.yml as base_url under backend:. Its README walks through the GitHub App it needs.

Every editor needs a GitHub account with write access to the repository. Each save becomes a commit, and GitHub Pages rebuilds the site in a minute or two.

What you can edit

  • Posts (_posts/): title, date, category, tags, cover picture and its description, caption, focus point, short summary, featured, link, contents list, comments, last changed, related posts, and the text. A new post gets a file name like 2026-12-01-my-title.md. The date in the file name is set when you first save, so changing the date later doesn’t rename the file or change the address.
  • Projects (_projects/): title, one-line description, date, year, role, client, link, cover picture and its description, gallery pictures, and the story.
  • Categories (category/): name, the name used in posts, description and address. A new category gets its page when you save it.
  • Not in the CMS: the About, Contact, Projects, Archive, Tags and Search pages, elements.md and index.html.
  • Settings: the site name and description, your author details, and under spica: the sidebar, menu, profile links, home page, post options, comments, newsletter, contact form, share picture, accent color, light or dark mode and the theme switch. Other settings, such as url, lang, image_widths and css, stay in _config.yml for you to edit by hand.

The About page isn’t in the CMS because its text holds theme code (the picture and the profile links). Edit it in about.md. Posts can hold the same kind of code, such as a gallery or a note. The text box opens in plain Markdown mode so that code stays as you wrote it, and you can switch to the visual editor.

Fields you leave empty are left out of the file. A post’s author: block (to credit another writer) isn’t in the form. Add it to the file by hand, and the CMS keeps it.

Categories

In a post, Category is a list of your existing categories. The first one is shown on the post. To use a new category, add it under Categories first. Spica needs a page for each category anyway, and this creates it. Give the new category a name, and type the same name in Name used in posts.

To show a new category in the menu, add it under Settings → Site settings → Menu links.

Pictures

Pictures you upload go to assets/img/posts/ for posts, assets/img/projects/ for projects, and assets/img/ for everything else. They’re linked from the same address, such as /assets/img/posts/your-picture.jpg. Always fill in the picture description. To change where uploads go, edit media_folder and public_folder at the top of admin/config.yml, or on a collection.

Spica’s smaller copies (-480 and -960 files, see Pictures) aren’t made by the CMS. If you want them, add them beside the main picture by hand.

What the CMS changes in your files

The CMS rewrites a file when it saves it. Your content stays the same, but:

  • Comments in _config.yml are removed. They only explain the settings, and these docs explain them too. Comments inside the front matter of a category file may go too.
  • Some keys move to a different line, and quotes may change. Jekyll reads both the same way.
  • A new post gets toc, comments and featured lines, set to their usual values. Its date is saved in the standard ISO format, such as 2026-12-01T09:00:00.000Z, and Jekyll reads that like any other date.

If you’d rather keep _config.yml exactly as you wrote it, delete the settings collection from admin/config.yml and edit that file by hand.

Removing the CMS

Delete the admin/ folder. Nothing else in Spica depends on it.