Hi!
I am working on my first Grav site and I am preparing a chronology in multilingual mode. Here is my html skeleton:
<div class="timeline-item" data-text="name">
<div class="timeline__content">{{ page.find('/images/gallery').media['img'].html('', '', 'timeline__img') }}
<h2 class="timeline__content-title grey-text text-lighten-3">date</h2>
<p class="timeline__content-desc grey-text text-lighten-1">desc</p>
</div>
</div>
How can I load data with a loop method? I think md is not suitable for this, but should I use YAML file with the following in multilingual? Thank you for all your help!
history:
en:
-
name: 'About EN'
img: '1.jpg'
date: '1886'
desc: 'Lorem ipsum... EN'
-
name: 'About2 EN'
img: '2.jpg'
date: '1925'
desc: 'Lorem ipsum...2 EN'
hu:
-
name: 'About HU'
img: '1.jpg'
date: '1886'
desc: 'Lorem ipsum... HU'
-
name: 'About2 HU'
img: '2.jpg'
date: '1925'
desc: 'Lorem ipsum...2 HU'