Skip to content
These are the docs for Clay 4.x. Go to the latest version (5.x)
On this page

Configuration

Settings live in three places, from the whole site down to a single page:

#The three places

The site: title, addresses, navbar links, versions and languages.

title: "My Project"
baseURL: "/my-project/"
siteURL: "https://my-org.github.io"
languages: ["en", "de"]

#Which value wins

Clay's defaults clay.yaml Environment variables

A value set further right replaces the one before it. Front matter belongs to a single page and never clashes with the others.

#Key ideas

  • Everything has a default. A clay.yaml with just a title and plain Markdown files make a working site.
  • Environment variables win. They override clay.yaml for one build, without changing the file.
  • Typos are reported. An unknown key in clay.yaml is a warning in every build, see build checks.
  • You don’t have to edit YAML by hand. clay edit changes settings and front matter and keeps your comments and formatting. See clay edit.