Capella Jekyll documentation

SEO and sharing

What Capella does for search engines and social sharing without any setup, and what to set before you launch.

What Capella does for you

  • Titles and descriptions. Each page gets a title (“Page title | Site title”) and a description, from title and description in its front matter, falling back to _config.yml. The jekyll-seo-tag plugin writes them, along with the canonical address.
  • Social sharing. Open Graph and Twitter tags with a sharing image. Every page uses /assets/img/demo/og.jpg unless it sets its own image:. A post shares its own photo (image in its front matter). See Writing posts.
  • Breadcrumbs. Posts and category pages carry breadcrumb data, so search results can show “Capella > Travel > Post title”. Category pages need the category: line in their front matter for this. See Writing posts.
  • A sitemap at /sitemap.xml, from the jekyll-sitemap plugin.
  • A feed of your posts at /feed.xml, from jekyll-feed, linked from every page.
  • Pages kept out of search. The search page, the thank-you page, the 404 page, the two extra home pages (/home-2/ and /home-3/), the /typography/ page and the /blocks/ catalogue are marked noindex and left out of the sitemap.
  • Clean HTML. One main heading per page, headings in order, real links, a skip link, labeled form fields, and the whole page’s CSS inline by default, which helps speed.

To hide any other page from search, add these two lines to its front matter:

noindex: true
sitemap: false

Before you launch

  1. Set url in _config.yml to your real address, with no slash at the end. Sharing tags, the sitemap, the feed and the Web3Forms redirect all need it.
  2. Write a title and description in index.html that say what your blog is about. Every page needs its own description.
  3. Fill in author: in _config.yml.
  4. Replace assets/img/demo/og.jpg with your own 1200 × 630 picture. The stand-in is a plain pale card.
  5. Check that every post has an excerpt, an image and an image_alt.
  6. Switch both forms out of demo mode. See Newsletter and contact forms.
  7. Add your site to Google Search Console and submit https://your-domain.com/sitemap.xml.

Checking it

  • Paste your address into PageSpeed Insights for speed, accessibility and SEO scores. Capella is aimed at a score of 100.
  • The Rich Results Test shows the structured data search engines see.
  • To check social sharing, paste a post’s address into a draft post on a social network before publishing it.

The /blocks/ and /typography/ pages

/blocks/ is the block catalogue and /typography/ shows every Markdown element. They’re in your copy so you can look things up while you build, and search engines are told to ignore them. If you don’t want them public, delete blocks.html and typography.md.