← All posts
guides

Designing sections for your theme

By pocketsite team ·

Sections are Handlebars templates with a YAML schema. Learn how developers define fields editors can fill in the page builder.

A section is a file in the sections/ folder of your theme repository. The front matter declares its fields and data sources:

---
name: Hero
fields:
  - key: heading
    type: text
---
<h1>{{fields.heading}}</h1>

Connect your Git repository under Theme and every push can update the site.