Spica Jekyll documentation
Files and folders
Where everything lives in Spica, and which files you'll edit.
Most people only edit _config.yml, _posts/, _projects/, about.md, contact.html and _data/strings.yml.
spica-jekyll/
├── _config.yml Your name, sidebar, links, home page, posts, forms, colors and switches
├── index.html The home page: greeting, featured post, post list, newsletter
├── projects.html The Projects page: every project as a card
├── archive.html The Archive page: every post, by year
├── tags.html Every tag, with its posts
├── search.html The search page
├── search.json The search index, built with the site
├── about.md The About page
├── contact.html The Contact page, with the form
├── thank-you.html Where visitors land after a form
├── 404.html The "page not found" page
├── elements.md The /elements/ page: every piece you can use in a post
├── style-guide.html A hidden /style-guide/ page that shows the theme's colors and parts
├── category/ One small file per category page
├── _posts/ One file per post, named YYYY-MM-DD-title.md
├── _projects/ One file per project
├── _data/
│ ├── strings.yml Every word the theme prints by itself
│ ├── css.yml Which CSS files go into the single stylesheet
│ └── palette.json Numbers shown on the style guide page
├── _layouts/
│ ├── default.html The shell every page uses: sidebar, content, footer
│ ├── post.html One post
│ ├── project.html One project
│ ├── page.html A plain page of text, such as About
│ └── category.html One category
├── _includes/
│ ├── sidebar.html Logo, tagline, menu, search link, profiles, light/dark button
│ ├── footer.html The slim line at the bottom
│ ├── head.html Everything in <head>
│ ├── custom-head.html Your own tags for <head>: analytics, site verification
│ ├── image.html, figure.html, gallery.html, video.html, note.html, button.html
│ ├── post-card.html, project-card.html, pager.html, share.html, toc.html ...
│ ├── css/ All the styles, as plain CSS, and custom.css for your own rules
│ └── icons/ The icons (SVG)
├── assets/
│ ├── css/style.css Used only when spica.css is "file". Leave it alone.
│ ├── fonts/ Schibsted Grotesk (self-hosted) and its license
│ ├── img/ avatar.webp, og.png, and the demo's pictures in posts/ and projects/
│ └── favicon.svg
├── wrangler.jsonc Settings for Cloudflare
└── Gemfile For running the site on your computer
How a page is built
- Posts and projects use the
postandprojectlayouts by themselves. Each is one Markdown file, and the layout adds the title, date, picture, share links and everything else. - Plain pages such as About and Elements use
layout: page. You write Markdown below the front matter. A page names its own CSS with acss:line, such ascss: [prose, page], because plain pages don’t get a default. The other pages (Projects, Archive, Tags, Search, Contact) are built by their own files and have theircss:line set. - Category pages use
layout: category. They have no text of their own: the layout lists every post with that category.
Why the home page is index.html
Jekyll can only split the post list into numbered pages from a file called index.html. That’s why the home page isn’t index.md. Page numbers work only there.
Files that don’t go into your site
_config.yml tells Jekyll to leave out research, scripts, README.md, CHANGELOG.md, LICENSE, Gemfile, Gemfile.lock, wrangler.jsonc and a few other files, so they never appear in _site/.