I have a loop that pulls data from a data file. I want one of the things it pulls to be an icon, either svg code or file, or an image file, whatever works.
Data file example.yml:
- title: Lorem title
description: Lorem description
icon: [icon code or file?]
Loop example:
{% for item in site.data.example %}
<span>{{ item.icon }}</span>
<h3>{{ item.title }}</h3>
<p>{{ item.description</p>
{% endfor %}
Can this work somehow?