Spica Jekyll documentation

Settings

Every setting in Spica's _config.yml, from your name and menu to the home page, post options, forms and color accent, with its default.

Everything that appears in more than one place is set once in _config.yml. Each setting has a comment above it, and this page follows the file from top to bottom. After changing this file, stop jekyll serve and start it again.

Site basics

title: Spica
description: A personal blog about writing, design and the tools behind them.
lang: en
url: "https://spica.tortoizthemes.com"
baseurl: ""
  • title is the site’s name in browser tabs and search results. The home page uses it too, as its title.
  • description is used by search engines and social sharing when a page has no description of its own. The home page has none, so this is its description.
  • lang is the page language for browsers and screen readers, and the language of the comments box. Set it to match any words you translate in _data/strings.yml.
  • url is your site’s full address, without a slash at the end. Search engines, the sitemap, the feed, social sharing and the Web3Forms and Formspree thank-you redirect need it.
  • baseurl is empty for username.github.io, custom domains, Cloudflare and Netlify. Use /repository-name only for a GitHub project site.

The writer: author:

author:
  name: Spica
  role: Writer and designer
  bio: I write about design, writing and the small tools that make both easier.
  avatar: /assets/img/avatar.webp
  url: /about/
  • name is in the sidebar’s copyright line, the footer, the “Written by” box under each post, the About page and the author name search engines see.
  • role and bio are in the author box. role is also on the About page.
  • avatar is your picture. It shows in the sidebar (on wide screens), the author box and the About page. Leave it out and those places show no picture.
  • url is where “More about me” links to. Leave it out to hide the link.
spica:
  logo: Spica
  tagline: Notes on design, writing and the tools behind them.
  avatar: true
  sidebar: left
  nav:
    - label: Blog
      url: /
    - label: Projects
      url: /projects/
  search: true
  • logo is the name at the top of the sidebar. If it’s empty, title is used.
  • tagline is one or two lines under it. Leave it out to hide it.
  • avatar is true to show your picture over the name, or false to hide it.
  • sidebar is left or right: the side the sidebar sits on.
  • nav is the list of menu links. A link lights up on its own page and on pages inside it, so /projects/ stays lit on every project.
  • search is true to show a search link in the sidebar, or false to hide it.

Write site addresses with a leading slash. The theme adds baseurl for you. See The sidebar and menu.

Profiles

  social:
    - label: GitHub
      icon: github
      url: https://github.com/
    - label: RSS
      icon: rss
      url: /feed.xml

Each profile has a label, an icon and a url. The icon is one of x, facebook, instagram, pinterest, youtube, linkedin, github, mastodon, bluesky, rss or mail. For mail, write the address as mailto:you@example.com. Profiles show in the sidebar, on the About page and on the Contact page.

Home page

  home:
    intro: "Hello, I'm Spica. I write about design, writing and the tools behind them."
    style: grid
    featured: true
  • intro is a short greeting over the posts on the first page. Leave it empty to hide it.
  • style is grid (cards with pictures), list (one post per row) or text (titles and dates only). Category pages use the same style.
  • featured is true to show the newest post marked featured: true as one large card on top of the first page.

See The home page.

Posts

  post:
    toc: true
    progress: true
    reading_time: true
    copy_code: true
    share: [x, linkedin, bluesky, email, copy]
    author_box: true
    related: 3
Setting Default What it does
toc on A list of the post’s headings beside the text. A post can turn it off with toc: false.
progress on A thin bar at the top of a post that fills as the reader scrolls.
reading_time on “5 min read” beside the date, on posts and cards. false hides it.
copy_code on A copy button on code blocks.
share x, linkedin, bluesky, email, copy The share links under each post, in this order. Also available: facebook. An empty list ([]) hides the row.
author_box on false hides the “Written by” box.
related 3 How many related posts to show under each post. 0 hides them.

See Writing posts.

Comments

  comments:
    provider: none
    repo: your-name/your-repo
    repo_id: ""
    category: Comments
    category_id: ""
    mapping: pathname

provider is none (the default) or giscus. mapping is how Giscus matches a post to its discussion; pathname suits most sites. See Comments and search.

Newsletter

  newsletter:
    provider: demo
    # action: https://buttondown.com/api/emails/embed-subscribe/your-name

provider is none (hides the form), demo (sends nothing), buttondown, kit, mailerlite or mailchimp. action is the form address your provider gives you. See Newsletter and contact form.

Contact form

  contact:
    provider: demo
    # action: https://formspree.io/f/your-id
    # key: your-web3forms-access-key
    email: hello@example.com

provider is demo (sends nothing), formspree, web3forms or netlify. Formspree takes its address in action, Web3Forms takes its access key in key. email is the address shown on the Contact page. See Newsletter and contact form.

Sharing image

  share_image: /assets/img/og.png

The picture shown when a page is shared on social media. Make your own at 1200 × 630 pixels. A post or project that has its own image shares that instead. See SEO.

Photos

  image_widths: [480, 960, 1600]

The widths Spica looks for when a photo has smaller copies. See Pictures.

Look and feel

  accent: violet
  color_scheme: auto
  theme_switch: true
  page_transitions: true
  instant_pages: true
  css: inline
Setting Default What it does
accent violet The accent color for links, buttons and the current menu item: violet, blue, teal, green, rose or orange.
color_scheme auto auto follows each visitor’s system setting, or choose light or dark for everyone.
theme_switch off true shows a light/dark button in the sidebar. A visitor’s choice is remembered in their browser, and color_scheme sets where they start. The demo’s _config.yml sets it to true. Without the line, there’s no button.
page_transitions on A soft fade between pages, in browsers that support it. false turns it off.
instant_pages on Lets the browser start getting the next page ready while the pointer rests on a link, so it opens at once. false turns it off.
css inline inline puts only the CSS each page needs inside the page. file links one stylesheet, /assets/css/style.css, from every page.

See Colors, fonts and CSS.

Favicon

Replace assets/favicon.svg with your own, or add favicon: /assets/your-file.svg at the top level of _config.yml (the line isn’t in the file; add it yourself). It’s served as an SVG. See Pictures.

Below the line

The second half of _config.yml says “you rarely need to change anything”. It sets up:

  • permalink: /:title/: posts get addresses like /good-first-sentence/.
  • paginate: 9 and paginate_path: /page/:num/: the home page lists nine posts at a time, then /page/2/, /page/3/ and so on.
  • collections: the projects, each with an address like /projects/tea-label-set/.
  • defaults: gives every post the post layout and every project the project layout, with their CSS.
  • markdown: kramdown with GitHub-style input and Rouge for colored code. Leave these as they are.
  • theme: null: tells GitHub Pages not to add its own default theme. Keep it.
  • plugins: jekyll-seo-tag, jekyll-sitemap, jekyll-feed and jekyll-paginate. All four are allowed on GitHub Pages.
  • exclude: files kept out of the built site.

The theme’s own words

Labels such as “Read on”, “Subscribe” and “Share” come from _data/strings.yml. See Colors, fonts and CSS.