Capella Jekyll documentation
Sidebar, sponsors and Instagram
Choose and order Capella's sidebar boxes, add sponsor cards, and set up the Instagram box without any Instagram connection.
The sidebar is the right-hand column beside post lists (the mixed and list variants of the posts block) and beside posts in the sidebar look. On phones it moves below the content. The wide post look and the grid list have no sidebar.
Choose and order the boxes
The boxes are listed in _data/sidebar.yml, top to bottom:
- search
- follow
- popular
- categories
- instagram
- sponsor: santorini
Remove a line to hide a box, or move lines to reorder them. The same list is used everywhere the sidebar appears. A single posts block can switch it off with sidebar: false.
| Box | What it shows |
|---|---|
search |
A search field that takes visitors to the search page. |
follow |
Your profiles from capella.social that have a count, as icons with the follower number. |
popular |
Up to four posts marked popular: true. Hidden when no post is marked. |
categories |
“All” (linking to /blog/) and every category with its post count. |
instagram |
The Instagram box. See below. |
newsletter |
The newsletter form, from the same settings as the footer’s. |
tags |
The twelve most used tags. |
sponsor: id |
A sponsor card from _data/sponsors.yml. |
The demo’s list doesn’t include newsletter or tags. Add them as lines if you want them.
Sponsor cards
A sponsor card is an ad or a partner offer. Each one is an entry in _data/sponsors.yml, named by its id:
backpacks:
kicker: Sponsored
title: Trail & Co. backpacks
text: Simple but powerful. Built for long days on the road.
offer: Discount 30% off
image: /assets/img/demo/sponsor-backpacks.webp
alt: A canvas backpack standing on a pale floor
url: https://example.com/
label: Shop the sale
| Field | What it does |
|---|---|
kicker |
The small line above the title. Keep a word like “Sponsored” here so readers know it’s an ad. Without it, the theme’s “Sponsored” is used. |
title |
The headline. The whole card is one link, on this title. |
text, offer |
Two optional lines under the title. |
image, alt |
The photo and what it shows. Optional. |
url |
Where the card links to. |
label |
The button-style words, such as “Shop the sale”. Shown only on the wide card in the post list. |
Links on a card carry rel="sponsored", which tells search engines it’s paid.
There are two places to use a card:
- In the sidebar: add
- sponsor: backpacksto_data/sidebar.yml. It shows as a tall card. - In the post list: add
sponsor: backpacksto apostsblock with themixedvariant. It shows as a wide card after the 5th post.sponsor_after: 3moves it.
An id that doesn’t exist shows nothing. To hide every sponsor card on the site at once, set sponsors: false under capella: in _config.yml.
Instagram box
Capella doesn’t connect to Instagram and loads nothing from it. You type your numbers and pick six photos in _data/instagram.yml:
handle: capella.journal
profile_url: https://www.instagram.com/capella.journal
avatar: /assets/img/demo/instagram-avatar.webp
posts: "256"
followers: 4.7K
following: 1.2K
items:
- image: /assets/img/demo/instagram-1.webp
alt: Two bowls of pumpkin soup seen from above
url: https://www.instagram.com/p/your-post/
handleis your name without the @.profile_urlis where “Follow” goes.posts,followersandfollowingare text, so write them as you want them to read.itemsare the photos. The box shows the first six. Each has animage, analtand aurlto link to.
The numbers don’t update by themselves. Change them when you like. To hide the box, remove - instagram from _data/sidebar.yml.
Photos in the box are shown as squares. See Pictures.