The site
The website is what a business's visitors see: SHADE's own site, which turns the published content of SHADE into plain pages, images and a search index. Visitors only ever load the site from its own domain. A small server next to the pages does the few things that cannot be built ahead: draft previews for the team and the personal parts of pages for users. The site's look comes from the theme and the site's styles only.
Its pages, navigation, footer, theme and redirects come from the website module, installed for a business with a site; SHADE itself serves forms, media, accounts and the site's settings.
What users can do
Visitors:
- Read every published page in every visible language:
/aboutin the default language,/en/aboutin others (see Languages), including item pages such as/nieuws/<slug>built from a template (see Data sources). - Get sent on from old addresses (see Redirects).
- Use the header menu (with dropdowns and a phone menu) and the language switch, and the footer links (see Header and footer).
- Search the site's pages in their language where a page has a search box (the Search starter component).
- Send forms, book appointments, use the cart, and sign in on
/account(forms and modules, see Accounts and personal pages); see a personal greeting where a page has one. - Download PDFs from the site itself.
- See a not-found page for unknown addresses, which editors can write themselves.
Editors and admins (indirectly, through the admin):
- Decide what the site shows by publishing pages, layout, theme and settings; a publish rebuilds the site (see Publishing and preview).
- Set each page's SEO: SEO title, Meta description, Social image, Hide from search engines, Canonical URL (the page's SEO group, see Pages and posts), and the site-wide Default SEO (title template, description, social image; see Site settings).
- Write the not-found page as a normal page with the slug
404. - Look at drafts from a preview link.
The live preview, and running without SHADE's site
The theme screen and a page's preview links show the site's preview. The website module's setting
Preview address (on the Modules screen) says where it answers (https://preview.example.com, or the site's own
address when one site serves both). Who may: packages.manage (admins). A site in Next.js, Nuxt or SvelteKit can
answer it too, with the preview route its package gives; its build hook is then its rebuild route, or the host's deploy
hook for a prerendered site (Preview and rebuild).
SHADE also runs without its own website, for example when it only feeds an app in another framework (see Other frontends) or only manages data:
- Without the website module there are no pages, navigation, footer, theme or redirects; forms, media and the rest stay, and every frontend reads them through the API.
- With it, leave the Preview address empty: there are no preview links, and the theme screen says there is no preview. Leave its build hook empty: publishing then rebuilds only the other frontends.
Who may do it
| Action | Permission | Roles |
|---|---|---|
| Build the site | an API token of the kind read or build, whose user may read content and media | the token's user: admin, editor or ai (all have these) |
| Open a draft from a preview link (valid 10 minutes) | made by whoever may read pages (collections.website-pages.read; collections.website-theme.read for the theme's preview) | admin, editor |
| Rebuild the site | the build hook (see Builds) | SHADE |
| Visit pages, search, download | none | everyone |
Creating the site's token is an admin task (tokens.manage).
In the admin
Nothing of its own: the site is configured through other screens.
- Pages, their components and each page's SEO group: Pages and posts.
- Site name, site URL and Default SEO: Site settings; the theme: Theme.
- Navigation and footer: Header and footer.
- Rebuilds and previews: Publishing and preview.
On the website
How pages are built
- Each build makes one page for every published page in every visible language, and a redirect at every old
address where no page lives. The page with the slug
404becomes the not-found page instead. - The site's data (name, menu, footer) for a hidden language is the default language's.
- A page without a heading 1 of its own gets its title as one, for screen readers only.
- Each page knows its own address in every visible language.
- Each page tells search engines the site's name and address, from Site settings, as structured data: the website and the organisation behind it, in the page's language. A page's own structured data presets (article, breadcrumb, questions, software application) come after them.
Components
Pages are built from HTML elements and components in the website editor. The old blocks (Hero, Text, Call to action, Features, FAQ, Form, Section, Columns, Grid, List, Cards, Download, Search, Account, Language switcher, Spacer) are gone; what they did, the website module's starter components do, added to the component library from the Components screen (see Pages and posts). They are styled by the site's styles and the theme.
Links to a page or item page that is not published (or not public in that language) lead nowhere: buttons disappear, menu and footer items are hidden.
The appointments and commerce modules' blocks (booking, staff, the shop) went with the old blocks; they come back as starter components the modules give the editor.
Rich text
Rich text shows paragraphs, headings (levels 2–4; others become the nearest), bullet and numbered lists,
quotes, line breaks, and bold, italic, underlined, code and linked text. Anything else is left out. Links must go to
a web address (http(s)://), mailto:, tel:, a path of the site (/…) or #…; others show as plain text.
Links that open in a new tab give the new page no access to the site and do not tell it where the visitor came from.
Theme, header and footer
- Every page carries the theme's colours, fonts, type scale, spacing, corner radius and container width (see Theme). The theme's web fonts are copied into the site like images, and the first three files are preloaded in the page's head.
- Header and footer: see Header and footer. The footer's year is the year of the build, and the visitor's browser puts in the current year.
- The words the site says itself are in the page's language: the skip link (Skip to content, the first thing Tab reaches; it moves to the page's content), the header's names for screen readers (Menu, Main navigation), the consent banner and an embed's notice. They come from SHADE's language files, Dutch and English today: another language is one more file in SHADE, and until it has one, a page in that language uses the site's default language's words.
- The language switcher's name for screen readers (Taal / Language) is the header's, from the website module.
Images and media
- Images are sent in modern formats (AVIF and WebP) at the size the screen needs, with the original as fallback and the alt text in the page's language. Cropped images keep their focal point in view. Images load when they come into view, except the hero image, which loads first. See Media.
- The build copies every image and file the pages use, PDFs they link to included, into the site, so visitors never load anything from SHADE. A missing file stops the build. Drafts in a preview still load from SHADE.
Search
- The build makes a search index of the site's pages; searching needs no server.
- Only a page's content is searched, not the header or footer. The not-found page,
/accountand pages with Hide from search engines are not searchable. - Each language searches its own pages, and the search texts follow the page's language.
- A page's search box searches in the visitor's browser and shows the results in the page's own elements.
- Search works in previews too.
- A site that renders on the server or an app can use the API's search instead.
SEO, sitemap and robots
- The page's title is the site's title template with
%sreplaced by the page's SEO title or its title. Meta description: the page's, else the default. Canonical address: the page's Canonical URL, else site URL + path. - Links shared on social networks show the page's title, description, address and social image (the page's, else the default, with its alt text), as a large card with an image or a small one without.
- A published page with neither its own social image nor the default is shared with one drawn for it: its SEO title (or its title) and the site name on the theme's background, text and accent colours, 1200×630, in one of the theme's web fonts (the heading font's, else the body font's). An item page gets one from its item's title when the item has no image. It is drawn again when the title, the site name or the theme changes. A theme without a web font gets none, since the image never uses fonts of the server it is drawn on: add one under Theme, or choose a social image.
- Search engines are told about each page's other languages and the default language, when there is more than one.
- Pages with Hide from search engines, previews, the not-found page and
/accountare kept out of search engines. Item pages take SEO from the item (its own SEO group, else its title, first long text and first image). /sitemap.xmllists one sitemap per visible language (/sitemap-<code>.xml), each with that language's published pages and item pages, when they last changed, and their translations; never hidden pages or the not-found page./robots.txtlets search engines read everything except the previews and points to the sitemap. Both use the site URL from the settings.
Not-found page
Unknown addresses show the not-found page in the visitor's language: the published page whose default-language slug
is 404 (a translated slug counts too), always hidden from search engines. Without one, a short "Page not found"
message in the page's language. Under a language's address (/en/…) the not-found page is that language's. The
not-found page is never an ordinary page or in the sitemap, in any language.
Accessibility
Visitor pages target WCAG 2.1 AA. Visible in the components:
- Each page names its language, as do the language links; the current menu item is marked for screen readers.
- Menu dropdowns and accordions work by keyboard and without script; the phone menu button says whether it is open, and without script the menu simply shows.
- Keyboard focus is always visible; visitors who ask for less motion get no transitions.
- Form fields all have labels; help text is linked to its field; results are announced to screen readers; the trap for spam bots is hidden from them and from the keyboard.
- Icons are hidden from screen readers unless they carry a label (social links are named by platform); images need alt text (publishing checks it, see Media).
What visitors' browsers load
Pages are HTML and CSS. Script runs only where needed:
- the header's phone-menu toggle (a few lines);
- the interactive parts (forms, search, menus, dialogs and tabs), only on pages that have them, and the
/accountpage's script; - the modules' parts for pages, for the modules that are on (the analytics module's counter, not in previews);
- personal parts, loaded after the page; meanwhile an empty placeholder shows (see Accounts and personal pages);
- the website editor's canvas script, only inside the editor.
Visitors' forms and sign-in go to the site's own address.
Preview
A preview link shows a saved draft; the website editor's canvas shows the unsaved page as it is being edited. Both are made on request, never stored by the browser or found by search engines, and only the admin may show them in a frame. Personal parts show as for a signed-out visitor. See Publishing and preview and Pages and posts.
Docker targets
How the site is run (a static site with a separate preview, or one container that builds itself) is in Setting up an instance (Coolify) and Hosting the site on a static host. With the static site alone, previews and personal parts are not available.
Rules and limits
- The site's address is the Site URL setting, the one place for it: canonical links, the sitemap, robots, the links between languages and the site's own links, and the only address from which visitors may send forms and sign in. A change reaches forms and sign-in at once (in rare cases within a minute), and the pages with the next build.
- Only published content is built. A change shows on the live site after the next build (see Publishing and preview), and visitors see it at once after that.
- A build fails when SHADE answers with an error (other than "not found") for the pages, the site's data, a data source or a form, when a media file is missing, or when the search index cannot be made.
- Personal parts need the site's server; on a site without one they keep their placeholder.
- Rich text links with other schemes (e.g.
javascript:) show as plain text. - The not-found page and the account page exist in every visible language; their built-in texts follow the page's language (Dutch, else English).
For developers
The code and its tests: shade/features/content-delivery/README.md in the shade repository.