DEV Community

Discussion on: Creating JSON Files with Eleventy

Collapse
gndclouds profile image
William Felker • Edited

Thanks for the great example. Is there a way to pass HTML or markdown from the json into the build?

for example:

 {
    "title": "Fake Post 3",
    "description": "Quis platea ut dolor [some link](HTTP://example.com) felis",
    "url": "/posts/3/"
  }
Enter fullscreen mode Exit fullscreen mode
Collapse
mattwaler profile image
Matt Waler Author

That data is already available to the build! You would get this data via a loop in collections.posts or the like.