Capella Jekyll documentation

What's where

Where everything lives in Capella, and which files you'll edit.

Most people only edit _config.yml, the page files, _posts/ and the three small files in _data/.

capella-jekyll/
├── _config.yml          Your name, links, header, footer, newsletter, comments, colors and switches
├── index.html           The home page: a list of blocks
├── home-2.html          A second home page, with a centered header
├── home-3.html          A third home page, with a grid of posts
├── about.html           The About page
├── contact.html         The Contact page, with its form settings
├── blog.html            The Blog page: every post, three across
├── tags.html            Every tag, with its posts
├── search.html          The search page
├── search.json          The search index, built with the site
├── thank-you.html       Where visitors land after a form
├── 404.html             The "page not found" page
├── blocks.html          The /blocks/ catalogue
├── typography.md        Every Markdown element in use (/typography/)
├── category/            One file per category page
├── _posts/              One file per post, named YYYY-MM-DD-title.md
├── _data/
│   ├── sidebar.yml      The sidebar boxes, in order
│   ├── sponsors.yml     The sponsor cards
│   ├── instagram.yml    The Instagram box
│   ├── strings.yml      Every word the theme prints by itself
│   ├── blocks.yml       The list shown on /blocks/
│   ├── examples/        The snippets shown on /blocks/
│   └── css.yml          Which CSS file each block uses
├── _layouts/
│   ├── default.html     The HTML shell every page uses
│   ├── home.html        Header, blocks, footer (every page made of blocks)
│   └── post.html        One post
├── _includes/
│   ├── blocks/          One file per block type, with its fields listed at the top
│   ├── sidebar/         One file per sidebar box
│   ├── css/             All the styles, as plain CSS, and custom.css for your own rules
│   ├── icons/           The icons (SVG)
│   ├── header.html      Logo, menu, profiles, search, light/dark button
│   ├── footer.html      Quote, newsletter, popular tags, contact details
│   └── image.html, figure.html, share.html, comments.html ...
├── assets/
│   ├── css/style.css    Used only when capella.css is "file". Leave it alone.
│   ├── fonts/           EB Garamond (self-hosted)
│   ├── img/demo/        The demo's photos (stand-ins in your copy)
│   └── favicon.svg
├── wrangler.jsonc       Settings for Cloudflare
└── Gemfile              For running the site on your computer

How a page is built

index.html, about.html, contact.html, blog.html and the category pages have no text of their own. Their blocks: list says which blocks appear, in which order, with which words. The home layout reads the list and renders each block from _includes/blocks/<type>.html. Anything you write below the front matter is shown after the blocks.

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 README.md, LICENSE, CHANGELOG.md, Gemfile, wrangler.jsonc and a few other files, so they never appear in _site/.