Loop md file params

Summary
  • md file
     [feature]
	template = "features_section.html"
	label1	 = "Built for the new token economy"
	icon1	 = "../img/features/token_icon.svg"
	label2	 = "Optimized for the best experience"
	icon2	 = "../img/features/experience_icon.svg"
	label3	 = "Built for the cloud"
	icon3	 = "../img/features/cloud_icon.svg"
	label4	 = "Built with an open standard"
	icon4	 = "../img/features/standard_icon.svg"
  • html

            { range *how can I define this * }
              <div class="col-md-3 col-sm-6">
                  <div class="feature-item">
                      <div >
                          <img src="{{ .Params.feature.icon1 }}">
                      </div>
                      <h4>{{ .Params.feature.label1 }}</h4>
                  </div>
              </div>
              .............
              .............
    

I have checked [SOLVED] Loop through data file with keys.
Btw, want to do with above style. Means markdown file content style.
Is this impossible?
Hope to kindly response.

[[feature]]
icon = "../img/features/token_icon.svg"
label = "Built for the new token economy"

[[feature]]
icon = "../img/features/experience_icon.svg"
label = "Optimized for the best experience"

[[feature]]
icon = "../img/features/cloud_icon.svg"
label = "Built for the cloud"

[[feature]]
icon = "../img/features/standard_icon.svg"
label = "Built with an open standard"
{{ range .Params.feature }}
  {{ .icon }}
  {{ .label }}
{{ end }}
2 Likes

:+1: thanks

Please use three ``` for code highlighting.