This is an unpublished draft preview that might include content that is not yet approved. The published website is at w3.org/WAI/.

Frontmatter

acknowledgements

(string) Path to an Acknowledgements page. The token ACKNOWLEDGEMENTS in the footer variable is replaced with this value. The URL gets properly adapted to the deployment environment.

class

(string) Specifies a class on the body element.
(Note that the page automatically creates a class with the name of the current page on the body element.)

Common value:

contributors

(map array) A list of people who contributed to the translation.

Every (translation) contributor is specified by their name in a separate line, like:

In addition, links can be added (note: there are strict rules of which pages to link to):

Following keys are available:

name *
(string) Translator name.
link
(string) Link to the translator personal page.
org
(string) Name of the translator organization.
orglink
(string) Link to the organization website.

custom_changelog

(string) Path to a custom Changelog page. If not set, <ref>/changelog/ is used, if such page exists.

date

(string) The publication date of a news post. Format is based on ISO 8601 : YYYY-MM-DD.

description

Most of the SEO/social media metadata is provided by the Jekyll SEO Tag plugin . We provide sensible metadata by default. However, this line should be added to the frontmatter to customize social media preview.

(string) Provides a short description of what the page is all about.

feedbackmail

(string) Customs the e-mail address used in the “Help improve this page” box (in text and buttons). Fallback value is wai@w3.org.

first_published

(string) The date that the page was first published. Format is plain text.

(string) Footer of the document, written in HTML.

You can use > or | to support multiline:

footnotestitle

(string) Customs heading of the Footnotes list box. Fallback value is Footnotes.

github

(map) GitHub related information. May be used to generate the “Fork and edit on GitHub” and “New GitHub issue” links in the “Help improve this page” box.

repository, branch and path are not required for pages developed in the wai-website repository.

Following keys are available:

label
(string) GitHub label to apply when a new issue is created from this page, prepended with wai-.
repository
(string) GitHub repository. If not set, repository value in config.yml is used.
branch
(string) Branch of the document. If not set, branch value in config.yml is used.
path
(string) Path to the document. Programmatically inferred in wai-website repository.

For translations, the language tag is put between the filename and the extension. Examples:

image

Most of the SEO/social media metadata is provided by the Jekyll SEO Tag plugin . We provide sensible metadata by default. However, this line should be added to the frontmatter to customize social media preview.

(string) A short social media sharing image. This image might also be re-used when linking to a page from other sections of the website, for example as a home page teaser1.

inline_css

(string) Adds custom CSS to the document. Use | to support multiline.

lang *

(string) The language tag of the current document.

Where possible, use a single language subtag from IANA Language Subtag Registry .

We usually only add region/script subtags when the language is significantly differently interpreted in different regions or when there is a reasonable expectation to get diverging translations. More info on Choosing a Language Tag.

last_reviewed

(string) The date that the page was last checked for accuracy. Format is based on ISO 8601 : YYYY-MM-DD.

last_updated *

(string) The date that the page was last substantively updated. Format is based on ISO 8601 : YYYY-MM-DD.

layout

(string) Applies a custom layout to the page. Generally fallbacks to default.

Frequently used values:

license

(string) Defines a license for the content. If not set, the W3C Document License is assumed.

Possible value:

metafooter

(boolean) Use frontmatter variables to build the page footer, instead of the the footer value. Only Tutorials pages use the metafooter for now.

If metafooter is set to true, the footer will be built using the following variables:

editors

(string array) list of editors.

update_editors

(string array) list of update editors.

contributing_participants

(string array) Contributing participants. A link to an “Acknowledgements” page is often used.

support

(array) Additional information about participants, sponsoring, funding projects, etc.

(map) Specifies next and previous pages (by their ref reference), so that previous/next arrows can be shown.

Following keys are available:

previous
(string) ref of the previous page
next
(string) ref of the next page

(string) A short title that we will use as the navigation text (in the left navigation) in the future. It should be short and succinct.

parent

(string) Used in header and secondarynav.

(string) Output path of a page. The URL gets properly adapted to the deployment environment.

Note: Collection pages generally have a default permalink, set in the _config.yml configuration file.

For translations, add the language tag to the end of the permalink, without a closing slash (/), like /path/to/page/es

ref *

(string) Unique identifier (“reference”) of a page. Must match the permalink of the English version of the page. Is used (among other things) to identify the set of translations of a page.

resource

(map) Specifies that the current page is part of a multi-page resource.

Usage:

Following keys are available:

ref *
(string) ref of the resource homepage.
title
(string) Resource title to display. Only use this key on the resource homepage.

title *

(string) A title that describes the page. Used as an h1 and in the HTML title tag.

title_html

(string) If you need to use HTML in the title (for example to highlight a word, use code markup or force a line break), you can use this line to provide that HTML variant.

The title value will still be used in the HTML title, or when referring to the page using WAI Markdown links (in English).

title_icon

(string) A path to an icon image. If set, an icon is displayed on the left of the h1 heading.

title_image

(string) A path to an image. If set, an image is displayed on the right of the h1 heading.
If the image contains text, it needs to be adjusted to the language of the document.

tlang

(string) The language tag of the current translation sitemap.

translation

(map) Key information about a translation.

All translations must have a translation variable.

Following keys are available:

last_updated *
(string) The date the translation was last updated. Format is based on ISO 8601 : YYYY-MM-DD.
outdated
(boolean) When set to true, marks the translation as outdated.
draft
(boolean) When set to true, marks the translation as draft.

translators

(map array) A list of the people who created the translation.

All translation pages should have a translators list.

Every translator is specified by their name in a separate line, like:

In addition, links can be added (note: there are strict rules of which pages to link to):

Following keys are available:

name * (string)
Translator name.
link (string)
Link to the translator personal page.
org (string)
Name of the translator organization.
orglink (string)
Link to the organization website.
  1. Not yet implemented. 

Back to Top

This is an unpublished draft preview that might include content that is not yet approved. The published website is at w3.org/WAI/.