DevHub Docs
Search…
⌃K

Using custom fields

Each site that is built on the DevHub platform can be assigned custom field values that can then be used throughout templates and pages.

Example custom field values

Below is an example of some assigned fields.
"custom_fields": {
"headline_one": "Example headline one",
"headline_two": "Example headline two"
}

Using custom fields in templates

Using our standard templating language, you can access the Site's custom fields and output them inside templates.
<h1>{{ site.custom_fields.headline_one }}</h1>
<h2>{{ site.custom_fields.headline_two }}</h2>