Skip to content

Commit 3b67da0

Browse files
committed
Simplify example
1 parent aaa37f4 commit 3b67da0

1 file changed

Lines changed: 10 additions & 8 deletions

File tree

README.md

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,11 @@ Create a component file at `src/components/callout.liquid`:
4646
title: Callout
4747
4848
# Default values
49-
heading: Help organize the 11ty Meetup!
49+
heading: Lorem ipsum dolor sit
5050
description: A callout component to highlight important information.
5151
links:
52-
- linkUrl: https://11tymeetup.dev/
53-
linkText: Join the 11ty Meetup!
52+
- linkUrl: "#"
53+
linkText: Learn more
5454
background: light
5555
---
5656
<div class="callout callout--{{ background }}">
@@ -78,13 +78,15 @@ In any template, use the `renderComponent` filter:
7878
```liquid
7979
---
8080
title: My Page
81+
82+
# Callout component data
8183
callout:
8284
type: callout
83-
heading: Important Notice
84-
description: This is a callout example
85+
heading: Help organize the 11ty Meetup!
86+
description: A callout component to highlight important information.
8587
links:
86-
- linkUrl: "#"
87-
linkText: Learn more
88+
- linkUrl: https://11tymeetup.dev/
89+
linkText: Join the 11ty Meetup!
8890
background: warning
8991
---
9092
@@ -93,7 +95,7 @@ callout:
9395

9496
</details>
9597

96-
> **Note:** The `renderComponent` filter accepts a template language parameter (`"njk"`, `"liquid"`, `"webc"`, `"vto"`, etc.) and can process both single components and arrays of components. If no template language is specified, it defaults to the calling template's language. The filter automatically merges component default values with your provided data - any missing fields will use the defaults from the component file.
98+
> **Note:** The `renderComponent` filter accepts a template language parameter (`"njk"`, `"liquid"`, `"webc"`, `"vto"`, etc.) and can process both single components and arrays of components. The filter automatically merges component default values with your provided data - any missing fields will use the defaults from the component file.
9799
98100
## Configuration
99101

0 commit comments

Comments
 (0)