Skip to content

Commit

Permalink
Update 11ty.md (#2088)
Browse files Browse the repository at this point in the history
With eleventyComputed the Data Value for Title and Name can be used in Frontmatter.
  • Loading branch information
b3nks authored Apr 20, 2024
1 parent 5476cb6 commit 55baffd
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docusaurus/docs/dev-docs/integrations/11ty.md
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,8 @@ pagination:

```md
---
title: Restaurant
eleventyComputed:
title: {{ restaurant.attributes.name }}
layout: default.liquid
pagination:
data: restaurants.data
Expand Down Expand Up @@ -355,7 +356,8 @@ module.exports = async () => {

```md
---
title: Category
eleventyComputed:
title: {{ category.attributes.name }}
layout: default.liquid
pagination:
data: categories.data
Expand Down

0 comments on commit 55baffd

Please sign in to comment.