avillafiorita / jekyll-datapage_gen

Generate one page per yaml record in Jekyll sites.
367 stars 79 forks source link

Is it possible to iterate through all fields in a given entry? #128

Closed sreyfe closed 8 months ago

sreyfe commented 8 months ago

I am trying display all of the data from a single entry onto each page. I would like to be able to do this without having to specify the names of each field. The below does what I want, but it also displays the html from the layout file.

` {% for field in page %}

  • {{field}}: {{page.field}}

  • {% endfor %}`

    Is there a better way to do this?

    sreyfe commented 8 months ago

    solved this by using the page_data_prefix setting