Loop array from front matter

Hi guys, I have front matter like this

faq:
    - ask: "Ask Me Why"
      answer: "Foo"
    - ask: "Don't Know Why"
      answer: "Bar"

my expectation is to get the form like below

<div>
   <p>Ask Me Why</p>
   <p>"Foo"</p>
</div>

<div>
   <p>Don't Know Why</p>
   <p>"Bar"</p>
</div>

the problem is I dont have any idea how to loop/range it. Any idea?

Thanks

Ah, :grin: finaly found the answer from Using range, first and variable names with front matter arrays

1 Like