Using custom fields
Last updated
Was this helpful?
Each site that is built on the DevHub platform can be assigned custom field values that can then be used throughout templates and pages.
Below is an example of some assigned fields.
"custom_fields": {
"headline_one": "Example headline one",
"headline_two": "Example headline two"
}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>Last updated
Was this helpful?
Was this helpful?