Skip to content

Instantly share code, notes, and snippets.

@ryangittings
Last active October 24, 2025 11:21
Show Gist options
  • Select an option

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

Select an option

Save ryangittings/8e0ef0c779657126a917908948b4b52c to your computer and use it in GitHub Desktop.
media:
input: src/uploads
output: /uploads
settings:
content:
merge: true
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: 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: 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