https://github.com/rknightuk/eleventy-data-pages-demo
An example of creating pages from data files in Eleventy
https://github.com/rknightuk/eleventy-data-pages-demo
Last synced: 3 months ago
JSON representation
An example of creating pages from data files in Eleventy
- Host: GitHub
- URL: https://github.com/rknightuk/eleventy-data-pages-demo
- Owner: rknightuk
- Created: 2022-12-16T18:53:26.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-12-16T18:53:41.000Z (almost 3 years ago)
- Last Synced: 2025-03-22T17:44:25.578Z (9 months ago)
- Language: HTML
- Size: 67.4 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
### eleventy-data-pages-demo
Example of creating separate pages from a data file in Eleventy.
I wrote this for my site then ended up not needing it. For my own future sanity, I wanted to preserve this as a sample of what I did. This is all documented on [this page of the Eleventy docs](https://www.11ty.dev/docs/pages-from-data/) with the exception of this `title` part which was elsewhere in the docs (and I now can't find), in `workflows.njk`:
Setting the page title (or any other data) in a pagination setup.
```
eleventyComputed:
title: "{{ workflow.name }}"
```