Skip to content

Instantly share code, notes, and snippets.

@ryangittings
Last active June 26, 2025 08:35
Show Gist options
  • Select an option

  • Save ryangittings/d330bb4080083454aed15392c21c1887 to your computer and use it in GitHub Desktop.

Select an option

Save ryangittings/d330bb4080083454aed15392c21c1887 to your computer and use it in GitHub Desktop.
theme: &THEME
name: theme
label: Theme
type: select
required: false
options:
values:
- value: lily
label: Lily
media:
input: src/uploads
output: /uploads
content:
- name: pages
label: Pages
path: src
type: collection
filename: "{primary}/index.md"
view:
layout: tree
node:
filename: index.md
hideDirs: all
fields:
- name: layout
type: string
hidden: true
default: layouts/page.njk
- name: title
type: string
label: Title
required: true
- name: blocks
label: Blocks
type: block
list:
collapsible:
collapsed: true
blockKey: type
blocks:
- name: hero
label: Hero
fields:
- name: title
type: string
label: Title
required: true
- name: content
type: rich-text
label: Content
required: true
- name: button
type: object
label: Button
fields:
- name: text
type: string
label: Button Text
- name: link
type: string
label: Button Link
- *THEME
- name: meta
type: object
label: Meta
fields:
- name: title
type: string
label: Title
required: false
- name: description
type: text
label: Description
required: false
- name: eleventyNavigation
type: object
label: Navigation
fields:
- name: key
type: string
label: Key
required: false
- name: parent
type: string
label: Parent
- name: excerpt
type: rich-text
label: Excerpt
required: false
- name: order
type: number
label: Order
required: false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment