Capella Jekyll documentation
Settings
Every setting in Capella's _config.yml, from your name and menu to the header, footer, post options and color scheme, with its default.
Everything that appears in more than one place is set once in _config.yml. Each setting has a comment above it. After changing this file, stop jekyll serve and start it again.
Site basics
title: Capella
description: A journal of travel, photography and design. Read, write and discuss.
lang: en
url: "https://capella-jekyll.tortoizthemes.com"
baseurl: ""
titleis the site’s name in browser tabs and search results.descriptionis used by search engines and social sharing when a page has no description of its own.langis the page language for browsers and screen readers. Set it to match any words you translate in_data/strings.yml.urlis your site’s full address, without a slash at the end. Search engines, the sitemap, the feed and social sharing need it.baseurlis empty forusername.github.io, custom domains, Cloudflare and Netlify. Use/repository-nameonly for a GitHub project site.
The writer: author:
author:
name: Capella
role: Writer and photographer
bio: Notes on travel, photography and design, written slowly.
avatar: /assets/img/demo/instagram-avatar.webp
url: /about/
This is the byline on every post, the “Written by” box under each post, and the author name search engines see. It’s also the name in the footer’s copyright line. url is where “More about me” links to. Leave avatar, role, bio or url out to hide that part of the box.
Header
capella:
logo: Capella
tagline: Travel, photography and design
header: split
nav:
- label: About
url: /about/
- label: Travel
url: /category/travel/
logois the name in the header, set in the italic serif. It’s also used in the footer. If it’s empty,titleis used.taglineis a short line beside it. Leave it out to hide it.headerissplit(logo, links and icons in one row) orcentered(logo in the middle, links in a row below). One page can choose its own withheader: centeredin its front matter.home-2.htmldoes.navis the list of links. The same list builds the header menu (a button on phones) and the footer’s link list. A link lights up on its own page and on pages inside it, so/category/travel/lights up on that page and on every Travel post.
Write site addresses with a leading slash. The theme adds baseurl for you.
The header also shows your profile icons, a Search link and, when theme_switch is on, a light/dark button. The Search link is part of _includes/header.html: to remove it, edit that file.
Profiles
social:
- label: Instagram
icon: instagram
url: https://www.instagram.com/your-name
count: 66K
iconis one ofx,facebook,instagram,pinterestoryoutube. The iconslinkedinandmailare in the theme too.countis the follower number shown in the sidebar’s “Follow me” box, written as you want it to read (56K). Leave it out and the profile isn’t listed in that box.- All profiles show as icons in the header, the phone menu and the footer.
To add another icon, save an SVG as _includes/icons/<name>.svg (24 × 24, drawn with lines) and use its name as icon.
Footer
footer: full
quote: When I was young, I lived like an old woman...
address: 116 Fairground Road, Florida 32904, USA
email: hello@example.com
popular_tags: []
footerisfull(a quote with the newsletter form, popular tags, and contact details with the menu) orcompact(one line with your logo, copyright and profile icons).quote,addressandemailshow in the full footer. Leave one out to hide it.popular_tagsis a list of tag names for the “Popular tags” box. Leave it empty ([]) to show the ten most used tags.
The copyright year fills in by itself. The line also says “Built with Jekyll”. Reword it with built_with in _data/strings.yml, or remove it by editing _includes/footer.html.
Newsletter
newsletter:
provider: demo
# action: https://buttondown.com/api/emails/embed-subscribe/your-name
provider is demo, buttondown, kit, mailerlite or mailchimp. See Newsletter and contact forms.
Posts
post:
layout: sidebar
drop_cap: true
share: [x, facebook, pinterest, email, copy]
author_box: true
related: 2
| Setting | Default | What it does |
|---|---|---|
layout |
sidebar |
sidebar puts the photo across the top, then the post with the sidebar beside it. wide centers the title over a wide photo, with one column of text and the share links floating beside it. A post can choose its own with post_layout. |
drop_cap |
true |
The big first letter. A post can turn it off with drop_cap: false. |
share |
x, facebook, pinterest, email, copy |
The share links under each post, in this order. Also available: linkedin. |
author_box |
on | false hides the “Written by” box. |
related |
2 |
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.
Sponsors
sponsors: true
Set false to hide every sponsor card at once. The cards themselves are in _data/sponsors.yml. See Sidebar, sponsors and Instagram.
Photos
image_widths: [480, 720, 960, 1600]
The widths Capella looks for when a photo has smaller copies. See Pictures.
Look and feel
color_scheme: light
theme_switch: true
css: inline
| Setting | Default | What it does |
|---|---|---|
color_scheme |
light |
light, dark, or auto to follow each visitor’s system setting. |
theme_switch |
off | true shows a light/dark button in the header. 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. |
css |
inline |
inline puts only the CSS each page needs inside the page. file links one stylesheet, /assets/css/style.css, from every page. |
Favicon and sharing image
- Replace
assets/favicon.svgwith your own, or addfavicon: /assets/your-file.svgat the top level of_config.yml. It’s served as an SVG. - The picture shown when a page is shared is set under
defaults:asimage: /assets/img/demo/og.jpg. Make your own at 1200 × 630 pixels. A post shares its own photo instead. See SEO.
Below the line
The second half of _config.yml says “rarely need to change anything”. It sets up:
permalink: /:title/: posts get addresses like/golden-hour/.paginate: 6andpaginate_path: /page/:num/: the home page lists six posts at a time, then/page/2/,/page/3/and so on.defaults: the sharing image, and the layout every post uses.theme: null: tells GitHub Pages not to add its own default theme. Keep it.plugins:jekyll-seo-tag,jekyll-sitemap,jekyll-feedandjekyll-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 more”, “Subscribe” and “Share” come from _data/strings.yml. See Colors, fonts and CSS.