Hi. all. can help me?
How to implement List Data on GoHugo. with range? like
/data/features.yml
list:
- title: features 1
description: >
Description 1
icon: fa-comment
- title: features 2
description: >
Description 2
icon: fa-headphones
- title: features 3
description: >
Description 3
icon: fa-microphone
- title: features 4
description: >
Description 4
icon: fa-comment-o
- title: features 5
description: >
Description 5
icon: fa-comment-o
- title: features 6
description: >
Description 6
icon: fa-comment-o
/themes/layouts/partial/features.html
{{ range $.Site.Data.features.list }}
<h3>{{ .Site.Data.features.list.title }}</h3>
<span>{{ .Site.Data.features.list.icon }}</span>
<p>{{ .Site.Data.features.list.title }}</p>
{{end}}
/themes/layouts/index.html
{{ partial "features" . }}
thank you very much, for the hugo community. to my previous question and very helpful to me