Sandbox Jekyll documentation

Update to 1.1.1

How to move a Sandbox Jekyll site from 1.1.0 to 1.1.1: which files you can copy over, which to merge by hand, and the newsletter setting to check.

What changed

1.1.1 is a fix release. Your pages, front matter keys and data keys keep their names, and the design does not change. It brings:

  • Newsletter forms that use your own Mailchimp address.
  • Search engine tags on every page: a canonical link, full-address share tags and structured data.
  • Lazy loading on images below the first screen.
  • Alt text on images that had none.
  • The old docs/ folder is gone from the download.
  • Fixes for broken links, pictures that did not load and Liquid loops that ignored their limits.

The CHANGELOG.md in the download lists every fix.

Check your newsletter form first

Before 1.1.1 the footer newsletter forms, the popup on demo 12 and the community form on demo 15 had a sample Mailchimp address built in. If you never set your own, sign-ups from your site went to that sample list.

You can fix this today, even before you update. Open _data/footer.yml and set form_action under newsletter (it appears twice) to your own Mailchimp form address. You find it in Mailchimp’s embedded form code, as the action link of the <form> tag.

From 1.1.1 there is one setting for every newsletter form, in _data/theme.yml:

mailchimp_form: "https://example.us1.list-manage.com/subscribe/post?u=YOUR_ID&id=YOUR_LIST_ID"

newsletter.form_action in _data/footer.yml still works and wins for the footer when it is set.

Before you start

Back up your site folder, or commit it if you use Git.

Step 1: copy the files that are safe to replace

If you haven’t edited them, copy these from the 1.1.1 download over your own:

  • _includes/
  • _layouts/
  • robots.txt
  • package.json

If you did edit a file in one of them, keep your copy and compare it with the new one before replacing it.

Step 2: delete the old docs pages

Earlier versions shipped a docs/ folder, which built about 65 documentation pages into your own site. The documentation now lives here on tortoizthemes.com, so 1.1.1 leaves that folder out. Delete these from your site, unless you use them for your own pages:

  • docs/
  • _layouts/doc.html
  • _includes/components/docs/
  • _includes/components/navigation/navigation-docs.html

If you kept the sample Blocks and Documentation menus in _data/navigation.yml, remove them too. Their links now point to the online documentation.

Step 3: merge these by hand

You have probably edited these, so copy only the changes.

_config.yml: set url to your site’s address, with no slash at the end. The canonical link, share tags, sitemap and robots.txt use it.

url: "https://example.com"

_data/theme.yml: set mailchimp_form, as shown above.

_data/footer.yml: empty form_action (both places) so the footer uses mailchimp_form, or keep your own address there. If you still have the sample footer links, note that /projects, /privacy and the sample tag links pointed to pages the theme does not have.

Gemfile: add this line with the other gems, then run bundle install. Ruby 3.4 and newer need it.

gem "bigdecimal"

Pages you kept from the demo: these had a broken link or a file that does not exist. Compare them with the download if you use them.

  • demo5.md, demo20.md, services2.md: the .webm video value is now empty.
  • demo14.md, demo30.md, demo34.md: links to pages that do not exist.
  • contact2.md, contact3.md, demo2.md, demo10.md, signup2.md: the button link /contact.html is now /contact/.
  • demo15.md, demo31.md, demo32.md, onepage.md, 404.md: custom_color is now empty, because it named stylesheets the theme never had.
  • _projects/demo-2-5.md, _projects/sample-featured-image.md: picture file names and project links.

Step 4: build and check

bundle exec jekyll build

Open a page and view its source. In the <head> you should see a <link rel="canonical"> with your full address.

New optional settings

You don’t have to use these. Images now take their alt text from the content beside them, such as a person’s name or the section title.

  • image_alt on a section sets the alt text of its main picture:
hero:
  title: "Grow your business with us"
  image: /assets/img/illustrations/i2.webp
  image_alt: "A designer sketching a page layout"
  • alt on an item in a list of images, slides, clients or store buttons does the same for that item.

A post uses its excerpt as the page description when meta_description is not set, and its featured_image as the share picture when image is not set.