The Sheets of a site

On a site kept in Google Drive, the configuration is in Google Sheets. SeedPage's console writes them for you, so most people never open one; this page is for administrators who prefer to work in the Sheet itself, or need to know what a value means.

Every Sheet

Sheet

Tabs

What it holds

conf/site

site, theme

The site's settings, and the theme's colours and fonts changed for this site.

conf/policies

the first tab

Which components each container accepts.

conf/resources

the first tab

Styles and scripts from other addresses.

conf/templates/<name>

template, structure, layout

A template: its name, its components and containers, their widths.

conf/models/<name>

the model's tabs

A content type: its fields and how its pages are made.

content/page-settings/...

properties, layout

A page's properties and the widths of its components.

content/fragment-settings/...

layout

The widths of a fragment's components.

content/tags

the first tab

The site's tags and their names in each language.

content/data/...

the first tab

A collection, such as opening hours or prices.

Templates are described in the templates reference, page properties in Page properties.

The header row

Every tab starts with a header row, which SeedPage skips. A tab has one of two shapes:

  • key | value: a setting per row, its name in the first column and its value in the second. The header row is key, value.
  • Records: a row per thing, under a header naming the columns, such as policy, allowed. Columns are found by their name, so their order does not matter, and other columns are ignored.

Names are read without regard to capitals or spaces around them. Empty rows are skipped. Where a value is yes or no, yes, true, x and 1 all mean yes. Where a value is a list, it is separated by commas.

A missing header row is the most common mistake: the first setting is then taken as the header, and skipped.

conf/site, the site tab

key

value

name

My Bistro

domain

https://mybistro.com

default_language

en

other_languages

pt-BR, es

theme

bistro

Every key, what it does and what an empty value means: Site settings. A key SeedPage does not know is ignored with a warning.

conf/site, the theme tab

Optional. The theme's values changed for this site alone, one per row, under the header token, value. Any value the theme defines can be changed; the base values are these:

token

value

color-primary

#1F6F3A

color-on-primary

#ffffff

color-fg

#1a1a1a

color-bg

#ffffff

font-heading

Georgia, serif

radius

8px

  • color-fg, color-bg, color-muted, color-line, color-surface: text, background, quiet text, lines and tinted areas.
  • color-primary and color-on-primary: the accent colour, and the text written on it. Keep them contrasting, so the text stays readable.
  • font-body, font-heading: font stacks, as in CSS.
  • max-width, measure, radius, space, space-lg: the page width, the reading width, corner rounding and spacing.

The setup wizard writes this tab when a starter site is made with the colours you chose. The console has no screen for it: change it here. The theme itself is chosen in Look.

conf/policies

Optional. Which components a container accepts, so a sidebar takes only short things, for example. Each policy is a row: its name, and the components it allows separated by commas, by their names in the catalog. container and fragment can be allowed too.

policy

allowed

sidebar

cta, text, fragment

gallery-only

gallery, image

A template gives a policy to a container in the policy column of its structure tab. A container without one, or a site without this Sheet, takes every component. The editor offers only the allowed components, and refuses others dropped there.

conf/resources

Optional. Styles and scripts the site loads from another address: a font service, a booking widget. Each is a row: its address, and where it loads.

address

where

https://fonts.example.com/inter.css

**

https://widget.example.com/book.js

/reservations/**

https://cdn.example.com/blog.css

template:article

  • address: an https address ending in .css or .js. Nothing else is accepted: no code is kept in Drive.
  • where: ** for every page; /menu/ for one page; /blog/* for the pages just under /blog/; /blog/** for every page under it; template:article for the pages made from a template. Several, separated by commas. A pattern serves every language: /menu/ also matches /pt-br/menu/.

The hosts of these addresses are added to the site's Content Security Policy, so the browser lets them load; nothing else from those hosts is allowed.

When something goes wrong

  • "The resource is not an https address of a .css or .js file": the address is http, or has no .css or .js at its end.
  • "The resource has no place to load": its where is empty. Write ** for every page.
  • "The policy is defined twice": two rows with the same name; the last one is used.
  • "The site settings have a key SeedPage does not know": a misspelled key in the site tab. It is ignored.